This repository has been archived by the owner on Aug 7, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 141
/
package.json
275 lines (275 loc) · 8.06 KB
/
package.json
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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
{
"name": "linter-eslint",
"main": "./dist/main.js",
"version": "9.0.1",
"description": "Lint JavaScript on the fly, using ESLint (v7 or older)",
"repository": "https://github.com/AtomLinter/linter-eslint.git",
"license": "MIT",
"engines": {
"atom": ">=1.13.0 <2.0.0"
},
"configSchema": {
"scopes": {
"title": "List of scopes to run ESLint on, run `Editor: Log Cursor Scope` to determine the scopes for a file.",
"type": "array",
"default": [
"source.js",
"source.jsx",
"source.js.jsx",
"source.flow",
"source.babel",
"source.js-semantic"
],
"items": {
"type": "string"
},
"order": 1
},
"lintHtmlFiles": {
"title": "Lint HTML Files",
"description": "You should also add `eslint-plugin-html` to your .eslintrc plugins",
"type": "boolean",
"default": false,
"order": 2
},
"autofix": {
"type": "object",
"order": 3,
"title": "Automatic Fixes",
"properties": {
"fixOnSave": {
"title": "Fix errors on save",
"description": "Have eslint attempt to fix some errors automatically when saving the file.",
"type": "boolean",
"default": false,
"order": 1
},
"ignoreFixableRulesWhileTyping": {
"title": "Ignore fixable rules while typing",
"description": "Have the linter ignore all fixable rules during linting when editing a document. The list is automatically updated on each lint job, and requires at least one run to be populated. Only supported when using ESLint v4+.",
"type": "boolean",
"default": false,
"order": 2
},
"rulesToDisableWhileFixing": {
"title": "Disable specific rules from fixes",
"description": "Prevent rules from being auto-fixed by ESLint. Applies to fixes made during saves as well as when running the `Linter Eslint: Fix File` command.",
"type": "array",
"default": [],
"items": {
"type": "string"
},
"order": 3
}
}
},
"global": {
"type": "object",
"collapsed": true,
"order": 4,
"title": "Global ESLint",
"properties": {
"useGlobalEslint": {
"title": "Use global ESLint installation",
"description": "Make sure you have it in your $PATH. ⚠️ Using the global ESLint install is heavily discouraged. If the installation is not found, linter-eslint will not work.",
"type": "boolean",
"default": false,
"order": 1
},
"eslintrcPath": {
"title": ".eslintrc Path",
"description": "It will only be used when there's no config file in project (if using a relative path, the file should be present in all your projects).",
"type": "string",
"default": "",
"order": 4
},
"globalNodePath": {
"title": "Global Node Installation Path",
"description": "Write the value of `npm get prefix` here",
"type": "string",
"default": "",
"order": 2
}
}
},
"disabling": {
"type": "object",
"order": 5,
"properties": {
"disableWhenNoEslintConfig": {
"title": "Disable when no ESLint config is found (in package.json or .eslintrc)",
"type": "boolean",
"default": true,
"order": 1
},
"rulesToSilenceWhileTyping": {
"title": "Silence specific rules while typing",
"description": "Useful when Atom fixes errors on save like `no-trailing-spaces` or `eol-last`.",
"type": "array",
"default": [],
"items": {
"type": "string"
},
"order": 2
}
}
},
"advanced": {
"type": "object",
"collapsed": true,
"title": "Uncommon",
"order": 6,
"properties": {
"disableEslintIgnore": {
"title": "Don't use .eslintignore files",
"type": "boolean",
"default": false,
"order": 1
},
"disableFSCache": {
"title": "Disable FileSystem Cache",
"description": "Paths of node_modules, .eslintignore and others are normally cached",
"type": "boolean",
"default": false,
"order": 2
},
"showRuleIdInMessage": {
"title": "Show Rule ID in Messages",
"type": "boolean",
"default": true,
"order": 3
},
"eslintRulesDirs": {
"title": "ESLint Rules Directories",
"description": "Specify a comma separated list of directories for ESLint to load rules from.",
"type": "array",
"default": [],
"items": {
"type": "string"
},
"order": 4
},
"localNodeModules": {
"title": "Path to the local node_modules folder",
"description": "Optionally specify the path to the local node_modules folder",
"type": "string",
"default": "",
"order": 5
},
"showIncompatibleVersionNotification": {
"title": "Notify when incompatible ESLint is detected",
"description": "When enabled, will show a notification if this package loads inside a project using ESLint version 8 or greater _and_ the user has not already installed the newer `linter-eslint-node` package. Uncheck if you don't want these notifications.",
"type": "boolean",
"default": true,
"order": 6
}
}
}
},
"scripts": {
"format": "prettier --write .",
"test.format": "prettier . --check",
"lint": "eslint . --fix",
"test.lint": "npm run build && eslint .",
"test": "npm run build && atom --test spec",
"clean": "rimraf dist",
"dev": "npm run build -- --watch",
"build": "cross-env NODE_ENV=development cross-env BABEL_KEEP_MODULES=false babel src --out-dir dist --delete-dir-on-start",
"prepare": "npm run build",
"build-commit": "build-commit -o dist"
},
"atomTestRunner": "./spec/runner",
"dependencies": {
"atom-linter": "10.0.0",
"atom-package-deps": "8.0.0",
"babel-preset-env": "1.7.0",
"consistent-path": "2.0.3",
"eslint": "7.32.0",
"eslint-rule-documentation": "1.0.23",
"fs-plus": "3.1.1",
"resolve-env": "1.0.0"
},
"devDependencies": {
"@babel/cli": "^7.16.0",
"@babel/core": "^7.16.0",
"@types/atom": "^1.40.11",
"@types/eslint": "8.4.6",
"@types/jasmine": "^4.0.0",
"@types/node": "^18.0.0",
"@types/rimraf": "^3.0.2",
"atom-jasmine3-test-runner": "^5.2.9",
"babel-preset-atomic": "^5.0.0",
"build-commit": "^0.1.4",
"cross-env": "^7.0.3",
"eslint-config-airbnb-base": "15.0.0",
"eslint-plugin-import": "2.26.0",
"jasmine-fix": "1.3.1",
"rimraf": "3.0.2"
},
"package-deps": [
{
"name": "linter",
"minimumVersion": "3.3.0"
}
],
"providedServices": {
"linter": {
"versions": {
"2.0.0": "provideLinter"
}
}
},
"activationHooks": [
"core:loaded-shell-environment"
],
"eslintConfig": {
"root": true,
"rules": {
"no-console": "off",
"max-len": [
1,
{
"code": 130
}
],
"semi": [
"error",
"never"
],
"comma-dangle": "off",
"global-require": "off",
"import/no-import-module-exports": "off",
"import/no-unresolved": [
"error",
{
"ignore": [
"atom"
]
}
],
"object-curly-newline": [
"error",
{
"ObjectExpression": {
"minProperties": 5,
"multiline": true,
"consistent": true
},
"ObjectPattern": {
"minProperties": 5,
"multiline": true,
"consistent": true
}
}
]
},
"extends": "airbnb-base",
"globals": {
"atom": "readonly"
},
"env": {
"node": true,
"browser": true
}
}
}