Skip to content

Commit 70aee8d

Browse files
committed
Fix ESLint scope and issues
1 parent d0fb571 commit 70aee8d

File tree

4 files changed

+20
-38
lines changed

4 files changed

+20
-38
lines changed

.eslintignore

+1
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,4 @@ node_modules
88
tmp
99
yarn.lock
1010
package.json
11+
test

.eslintrc.js

+18-1
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,28 @@
11
module.exports = {
2+
extends: [
3+
'plugin:import/typescript',
4+
'prettier',
5+
'prettier/@typescript-eslint',
6+
'prettier/react',
7+
],
8+
plugins: ['@typescript-eslint', 'import', 'react', 'prettier'],
29
parser: '@typescript-eslint/parser',
310
parserOptions: {
411
sourceType: 'module',
512
ecmaVersion: 2020,
13+
ecmaFeatures: {
14+
jsx: true,
15+
},
616
},
7-
plugins: ['@typescript-eslint'],
817
settings: {
918
'import/extensions': ['.js', '.ts', '.jsx', '.tsx'],
19+
react: {
20+
version: 'detect',
21+
},
22+
},
23+
env: {
24+
browser: true,
25+
es6: true,
26+
node: true,
1027
},
1128
};

editor/.eslintrc.js

-35
This file was deleted.

package.json

+1-2
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,7 @@
1616
"node": ">=8.0.0"
1717
},
1818
"scripts": {
19-
"lint": "eslint .",
20-
"lint:editor": "eslint editor",
19+
"lint": "eslint \"**/*.{js,jsx,ts,tsx}\" --fix",
2120
"test": "jest",
2221
"test:watch": "jest --watch",
2322
"build:editor": "cd editor && yarn && yarn build",

0 commit comments

Comments
 (0)