-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy path.eslintrc.cjs
57 lines (54 loc) · 1.27 KB
/
.eslintrc.cjs
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
47
48
49
50
51
52
53
54
55
56
57
// Copyright 2022, University of Colorado Boulder
module.exports = {
env: {
browser: true,
node: true
},
extends: [
'plugin:react/recommended',
'../chipper/eslint/sim_eslintrc.js',
'../chipper/eslint/node_eslintrc.js',
'../chipper/eslint/format_eslintrc.js'
],
ignorePatterns: [
'static/*'
],
parser: '@babel/eslint-parser',
parserOptions: {
babelOptions: {
presets: [
'@babel/preset-react'
]
},
requireConfigFile: false
},
rules: {
'jsx-quotes': [
'error',
'prefer-single'
],
'require-statement-match': 'off',
'require-atomic-updates': [
'error',
{ allowProperties: true }
],
'default-import-match-filename': 'off',
'react/no-unescaped-entities': 'off',
'react/prop-types': 'off',
// Disable many of the PhET rules that are difficult to apply to this project due to all the legacy code.
'bad-sim-text': 'off',
'bad-text': 'off',
'todo-should-have-issue': 'off',
'copyright': 'off',
'visibility-annotation': 'off',
'no-eval': 'off',
'phet-object-shorthand': 'off',
'default-export-class-should-register-namespace': 'off',
'single-line-import': 'off'
},
settings: {
react: {
version: 'detect'
}
}
};