Skip to content

Commit a7121f8

Browse files
authored
chore: use airbnb-typescript/base eslint plugin (#420)
1 parent 4cb4d7f commit a7121f8

File tree

15 files changed

+541
-479
lines changed

15 files changed

+541
-479
lines changed

.circleci/config.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,5 +24,7 @@ jobs:
2424
- ~/.cache/yarn
2525
key: v2-dependencies-{{ checksum "yarn.lock" }}
2626

27+
- run: yarn lint
28+
2729
# run tests!
2830
- run: yarn test

.eslintrc.js

Lines changed: 3 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ module.exports = {
55
ecmaFeatures: {
66
jsx: true,
77
},
8+
project: './tsconfig.json',
89
},
910
env: {
1011
browser: true,
@@ -15,8 +16,7 @@ module.exports = {
1516
parser: '@typescript-eslint/parser',
1617
plugins: ['@typescript-eslint', 'import'],
1718
extends: [
18-
'eslint-config-airbnb-base',
19-
'plugin:@typescript-eslint/recommended',
19+
'airbnb-typescript/base',
2020
],
2121
rules: {
2222
'no-nested-ternary': [0],
@@ -27,19 +27,8 @@ module.exports = {
2727
'import/no-extraneous-dependencies': [0],
2828
'consistent-return': [0],
2929
'no-bitwise': [0],
30+
'@typescript-eslint/no-use-before-define': [0],
3031
'prefer-destructuring': [2, { array: false }],
31-
'import/extensions': [0],
32-
'@typescript-eslint/ban-ts-comment': [0],
33-
'@typescript-eslint/explicit-module-boundary-types': [0],
34-
'@typescript-eslint/no-explicit-any': [0],
35-
'@typescript-eslint/no-non-null-assertion': [0],
3632
'max-len': [0],
3733
},
38-
settings: {
39-
'import/resolver': {
40-
node: {
41-
extensions: ['.js', '.jsx', '.ts', '.tsx'],
42-
},
43-
},
44-
},
4534
};

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,10 @@
1616
"jsx"
1717
],
1818
"devDependencies": {
19+
"@typescript-eslint/eslint-plugin": "^4.4.1",
1920
"eslint": "^7.7.0",
20-
"eslint-config-airbnb-base": "^14.1.0",
21-
"eslint-plugin-import": "^2.20.2",
21+
"eslint-config-airbnb-typescript": "^12.3.1",
22+
"eslint-plugin-import": "^2.22.1",
2223
"lerna": "^3.19.0"
2324
}
2425
}

0 commit comments

Comments
 (0)