-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.js
37 lines (37 loc) · 934 Bytes
/
.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
module.exports = {
parser: "@babel/eslint-parser",
plugins: ["p5js"],
env: {
browser: true,
es2021: true,
"p5js/p5": true
},
extends: ["airbnb-base","plugin:p5js/p5"],
overrides: [
{
env: {
node: true,
},
files: [".eslintrc.{js,cjs}"],
parserOptions: {
sourceType: "script",
},
},
],
parserOptions: {
ecmaVersion: "latest",
},
rules: {
"no-console": "error",
"no-alert": "error",
"indent": ["error", 4],
"no-unused-vars": "error",
"no-use-before-define": "error",
"space-before-function-paren": ["error", "never"],
"linebreak-style": 0,
"quotes": 0,
"no-plusplus": 0,
"prefer-template": "error",
"no-param-reassign": 0
},
};