-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy path.eslintrc.js
54 lines (54 loc) · 1.21 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
module.exports = {
extends: [
'plugin:eslint-plugin/all',
'plugin:node/recommended',
'plugin:square/base',
],
plugins: ['eslint-plugin'],
parserOptions: {
ecmaVersion: 2021,
sourceType: 'script',
},
rules: {
'eslint-plugin/require-meta-docs-url': [
'error',
{
pattern:
'https://github.com/square/eslint-plugin-square/tree/master/docs/rules/{{name}}.md',
},
],
},
overrides: [
{
files: ['tests/**/*.js'],
env: { mocha: true },
},
{
files: ['**/*.md'],
processor: 'markdown/markdown',
},
{
// Markdown code samples in documentation:
files: ['**/*.md/*.js'],
plugins: ['markdown'],
parserOptions: {
sourceType: 'module',
},
rules: {
'no-undef': 'off',
'no-unused-vars': 'off',
'node/no-missing-import': 'off',
'node/no-unsupported-features/es-syntax': 'off',
'unicorn/filename-case': 'off',
},
},
{
parser: '@typescript-eslint/parser',
files: ['*.ts'],
extends: ['plugin:@typescript-eslint/recommended'],
rules: {
'node/no-unsupported-features/es-syntax': 'off',
},
},
],
};