Skip to content

Commit 43b19d4

Browse files
committed
feat: add eslint
1 parent e39533d commit 43b19d4

File tree

5 files changed

+14705
-2310
lines changed

5 files changed

+14705
-2310
lines changed

.editorconfig

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
root = true
2+
3+
[*]
4+
indent_style = space
5+
indent_size = 2
6+
end_of_line = lf
7+
charset = utf-8
8+
max_line_length = 120
9+
trim_trailing_whitespace = true
10+
insert_final_newline = true

.eslintignore

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
.next
2+
/next.config.js
3+
node_modules
4+
src/cypress
5+
src/lib/helpers/logger.js
6+
src/lib/helpers/asyncForEach.js
7+
src/lib/templates
8+
src/tests
9+
test/sample/node_modules
10+
test/sample/out_functions
11+
test/sample/netlify/functions
12+
test/sample/my-publish-dir
13+
test/sample/.next
14+
test/sample/.netlify

.eslintrc.js

+29
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
const { overrides } = require('@netlify/eslint-config-node')
2+
3+
module.exports = {
4+
extends: '@netlify/eslint-config-node',
5+
rules: {
6+
complexity: 0,
7+
'fp/no-let': 0,
8+
'fp/no-loops': 0,
9+
'fp/no-mutation': 0,
10+
'fp/no-mutating-methods': 0,
11+
'id-length': 0,
12+
'max-statements': 0,
13+
'no-await-in-loop': 0,
14+
'node/exports-style': 0,
15+
'node/global-require': 0,
16+
'node/no-unpublished-require': 0,
17+
'node/prefer-global/process': 0,
18+
'no-magic-numbers': 0,
19+
'no-promise-executor-return': 0,
20+
'no-prototype-builtins': 0,
21+
'no-shadow': 0,
22+
'no-unused-vars': 0,
23+
'prefer-regex-literals': 0,
24+
'promise/prefer-await-to-callbacks': 0,
25+
'unicorn/filename-case': 0,
26+
'unicorn/no-array-push-push': 0,
27+
},
28+
overrides: [...overrides],
29+
}

0 commit comments

Comments
 (0)