Commit b16bff8 1 parent 9a721bf commit b16bff8 Copy full SHA for b16bff8
File tree 4 files changed +27
-22
lines changed
4 files changed +27
-22
lines changed Original file line number Diff line number Diff line change 2
2
set -e
3
3
4
4
# # NPM eslint
5
- npm install -s eslint
5
+ npm install --save-dev eslint
6
6
7
7
# # NPM test
8
- find ./js -type f -name " *.js" | xargs node_modules/.bin/eslint -c ./.eslintrc.json
8
+ find ./js -type f -name " *.js" | xargs node_modules/.bin/eslint --stats - c ./.eslint.config.js
Original file line number Diff line number Diff line change 1
- {
2
- "parserOptions" : {
3
- "ecmaVersion" : "latest" ,
4
- "sourceType" : "module" ,
5
- "ecmaFeatures" : { }
1
+ module . exports = {
2
+ "languageOptions" : {
3
+ "parserOptions" : {
4
+ "ecmaVersion" : "latest" ,
5
+ "sourceType" : "module" ,
6
+ "ecmaFeatures" : { }
7
+ } ,
8
+ "globals" : {
9
+ "process" : true ,
10
+ "BigInt" : true ,
11
+ "Global" : true ,
12
+ "Limits" : true ,
13
+ "rizin" : true ,
14
+ "atob" : true ,
15
+ "btoa" : true ,
16
+ "unit" : true ,
17
+ "console" : true
18
+ }
6
19
} ,
7
- "extends" : "eslint:recommended" ,
8
20
"rules" : {
9
21
"semi" : [ 2 , "always" ] ,
10
22
"no-console" : [ "error" , {
18
30
} ] ,
19
31
"no-unused-vars" : [ "error" , {
20
32
"varsIgnorePattern" : "jsdec_|\\binclude\\b" ,
33
+ "caughtErrors" : "none" ,
21
34
"args" : "none"
22
35
} ] ,
23
36
"curly" : "error" ,
26
39
"no-constant-condition" : [ "error" , {
27
40
"checkLoops" : false
28
41
} ] ,
29
- "no-control-regex" : "warn"
30
- } ,
31
- "globals" : {
32
- "process" : true ,
33
- "BigInt" : true ,
34
- "Global" : true ,
35
- "Limits" : true ,
36
- "rizin" : true ,
37
- "atob" : true ,
38
- "btoa" : true ,
39
- "unit" : true ,
40
- "console" : true
42
+ "no-control-regex" : "warn"
41
43
}
42
- }
44
+ } ;
Original file line number Diff line number Diff line change 14
14
- uses : actions/checkout@v4
15
15
- uses : actions/setup-node@v4
16
16
with :
17
- node-version : " 16 "
17
+ node-version : " 21 "
18
18
- name : eslint
19
19
run : chmod +x .ci-scripts/ci-eslint.sh && .ci-scripts/ci-eslint.sh
20
20
Original file line number Diff line number Diff line change 1
1
build * /
2
2
subprojects /libquick * /
3
+ node_modules /
4
+ package.json
5
+ package-lock.json
You can’t perform that action at this time.
0 commit comments