-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.js
54 lines (49 loc) · 2 KB
/
.eslintrc.js
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
/*///////////////////////////////// ABOUT \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\*\
ESLINT CONFIGURATION for NETCREATE ITEST (2023)
\*\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ * /////////////////////////////////////*/
const { RULES } = require('./.eslintrc-rules');
/// BASE CONFIGURATION ////////////////////////////////////////////////////////
/// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
const config = {
/*- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -*:
We want to support both node-style 'require' and es6 module 'import'.
:*- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -*/
env: {
browser: true,
es6: true,
node: true
},
parserOptions: {
'ecmaVersion': 2021,
'sourceType': 'module'
},
/*- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -*:
Plugins are packages that rules and sets of rules, but could also be
something else (e.g. parser) that ESLINT can make use of.
See: eslint.org/docs/user-guide/configuring#use-a-plugin
:*- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -*/
plugins: [],
extends: [
'eslint:recommended', // standard recommendations
// 'plugin:react/recommended', // handle jsx syntax
'prettier' // prettier overrides
],
globals: {
Atomics: 'readonly',
SharedArrayBuffer: 'readonly'
},
settings: {
'react': {
'version': 'detect'
}
},
/*- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -*:
The "rules" field can override what was set in the "extends" field.
I am turning off the rules that I find annoying or trigger false warnings
in some code structures.
:*- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -*/
rules: RULES
};
/// EXPORTS ///////////////////////////////////////////////////////////////////
/// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
module.exports = config;