Skip to content

Commit a8b6a3e

Browse files
committed
style: update and apply linting
1 parent faec04b commit a8b6a3e

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

49 files changed

+906
-660
lines changed

.eslintignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
node_modules/*
33
/build/*
44
/demo/*
5+
/lib/*
56

67
# ignored file types
78
**/*.json

.eslintrc.js

Lines changed: 1 addition & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,44 +1,20 @@
11
module.exports = {
22
extends: [
33
'airbnb-base',
4-
"plugin:react/recommended"
54
],
65
parser: 'babel-eslint',
76
env: {
8-
browser: true,
97
es6: true,
10-
node: true,
11-
jest: true,
12-
},
13-
"parserOptions": {
14-
"ecmaFeatures": {
15-
"jsx": true
16-
}
178
},
189
rules: {
1910
'max-len': ['error', {
20-
code: 100,
11+
code: 120,
2112
ignoreComments: true,
2213
ignoreTrailingComments: true,
2314
ignoreUrls: true,
2415
ignoreStrings: true,
2516
ignoreTemplateLiterals: true,
2617
ignoreRegExpLiterals: true,
2718
}],
28-
'arrow-parens': ['error', 'as-needed', { requireForBlockBody: true }],
29-
"react/jsx-uses-react": "error",
30-
"react/jsx-uses-vars": "error"
31-
},
32-
"settings": {
33-
"react": {
34-
"createClass": "createReactClass", // Regex for Component Factory to use,
35-
// default to "createReactClass"
36-
"pragma": "React", // Pragma to use, default to "React"
37-
"version": "detect", // React version. "detect" automatically picks the version you have installed.
38-
// You can also use `16.0`, `16.3`, etc, if you want to override the detected value.
39-
// default to latest and warns if missing
40-
// It will default to "detect" in the future
41-
"flowVersion": "0.53" // Flow version
42-
},
4319
}
4420
};

.prettierrc

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"trailingComma": "es5",
3+
"tabWidth": 4,
4+
"semi": true,
5+
"singleQuote": true
6+
}

packages/contract-artifacts/.eslintrc.js

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,15 @@
11
module.exports = {
2-
"env": {
3-
"es6": true,
4-
"browser": true
5-
},
62
"extends": [
7-
'eslint:recommended',
3+
'../../.eslintrc.js',
84
"plugin:@typescript-eslint/recommended",
95
"plugin:@typescript-eslint/recommended-requiring-type-checking",
106
"prettier/@typescript-eslint", // Uses eslint-config-prettier to disable ESLint rules from @typescript-eslint/eslint-plugin that would conflict with prettier
117
"plugin:prettier/recommended" // Enables eslint-plugin-prettier and eslint-config-prettier. This will display prettier errors as ESLint errors. Make sure this is always the last configuration in the extends array.
12-
],
13-
// "ignorePatterns": [],
8+
],
9+
"env": {
10+
"es6": true,
11+
"browser": true
12+
},
1413
"parser": "@typescript-eslint/parser",
1514
"parserOptions": {
1615
"project": "./tsconfig.json",
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
module.exports = {
2+
semi: true,
3+
trailingComma: "all",
4+
singleQuote: true,
5+
tabWidth: 2
6+
};

0 commit comments

Comments
 (0)