forked from aframevr/aframe-inspector
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patheslint.config.mjs
More file actions
46 lines (41 loc) · 1015 Bytes
/
Copy patheslint.config.mjs
File metadata and controls
46 lines (41 loc) · 1015 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
import neostandard from 'neostandard';
import reactPlugin from 'eslint-plugin-react';
import reactHooks from 'eslint-plugin-react-hooks';
export default [
// Global ignores
{
ignores: ['src/components/__tests__/**']
},
// neostandard base config, no style rules, browser globals
...neostandard({ noStyle: true, env: ['browser'] }),
// React recommended rules
reactPlugin.configs.flat.recommended,
reactPlugin.configs.flat['jsx-runtime'],
// React hooks recommended rules
reactHooks.configs.flat.recommended,
// Project config
{
files: ['src/**/*.js'],
languageOptions: {
parserOptions: {
ecmaFeatures: { jsx: true }
},
globals: {
AFRAME: 'readonly',
THREE: 'readonly'
}
},
plugins: {
react: reactPlugin
},
settings: {
react: { version: 'detect' }
},
rules: {
'no-useless-return': 'off',
'no-var': 'off',
'object-shorthand': 'off',
'prefer-const': 'off'
}
}
];