forked from jenkinsci/workflow-cps-plugin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
40 lines (37 loc) · 1.11 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
module.exports = {
// When releasing with maven, all the repo is copied again in target/checkout and build and tested there
// eslint by default loads any configuration in ancestor directories, so it founds the configuration in . and in ./target/checkout and fails
// With this property we are telling it to not load other config files from ancestor directories
root: true,
env: {
browser: true,
es6: true
},
// Uses eslint default ruleset
extends: "eslint:recommended",
plugins: [
// Keeps the default level to warn to avoid breaking the current
// CI build environment
"only-warn"
],
parserOptions: {
ecmaVersion: 2018,
sourceType: "module"
},
rules: {
},
globals: {
Atomics: "readonly",
SharedArrayBuffer: "readonly",
'__dirname': false,
// Allow jest globals used in tests
jest: false,
expect: false,
it: false,
describe: false,
beforeEach: false,
afterEach: false,
beforeAll: false,
afterAll: false,
}
};