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 3
/
package.json
176 lines (176 loc) · 5.92 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
{
"name": "linter-eslint-node",
"main": "./lib/main",
"version": "1.0.6",
"description": "Lint JavaScript on the fly, using ESLint (v8 or greater)",
"keywords": [
"linter-eslint",
"eslint"
],
"repository": "https://github.com/AtomLinter/linter-eslint-node",
"license": "MIT",
"engines": {
"atom": ">=1.0.0 <2.0.0"
},
"devDependencies": {
"atom-jasmine3-test-runner": "^5.2.11",
"eslint-plugin-import": "^2.25.4",
"patch-package": "^7.0.0",
"rimraf": "^3.0.2"
},
"package-deps": [
{
"name": "linter",
"minimumVersion": "3.3.0"
}
],
"providedServices": {
"linter": {
"versions": {
"2.0.0": "provideLinter"
}
}
},
"activationHooks": [
"core:loaded-shell-environment"
],
"configSchema": {
"scopes": {
"title": "List of scopes to run ESLint on",
"description": "Run `Editor: Log Cursor Scope` to determine the scopes for a file. To lint JavaScript inside HTML files, add `source.js.embedded.html` to this list and be sure that `eslint-plugin-html` is installed and added to your `.eslintrc`.",
"type": "array",
"default": [
"source.js",
"source.jsx",
"source.js.jsx",
"source.flow",
"source.babel",
"source.js-semantic",
"source.ts"
],
"items": {
"type": "string"
},
"order": 1
},
"nodeBin": {
"title": "Path to Node binary",
"description": "The path to the version of Node that this linter should run. If you have one global installation of node, `which node` should give you the correct value. If you use NVM or another Node version manager, `which node` within this project's directory should give you the correct value. If you need this value to vary on a per-project basis, consult the README for various options.",
"type": "string",
"default": "node",
"order": 2
},
"warnAboutOldEslint": {
"title": "Warn about old ESLint versions",
"description": "If your project’s ESLint is too old for this package to support, and you don’t have `linter-eslint` installed, you’ll see a single warning message after your first lint attempt, and no further messages until you reopen the project. If you’d rather not receive the warning under any circumstances, disable this option.",
"type": "boolean",
"default": true,
"order": 3
},
"autofix": {
"type": "object",
"order": 4,
"title": "Automatic Fixes",
"properties": {
"fixOnSave": {
"title": "Fix errors on save",
"description": "Have ESLint automatically apply any fixes when linting on save.",
"type": "boolean",
"default": false,
"order": 1
},
"rulesToDisableWhileFixing": {
"title": "Disable specific rules from fixes",
"description": "Rules in this list will never have fixes applied, whether during a save or when running the `Linter Eslint: Fix File` command.",
"type": "array",
"default": [],
"items": {
"type": "string"
},
"order": 2
},
"ignoreFixableRulesWhileTyping": {
"title": "Ignore fixable rules while typing",
"description": "Ignore all violations that have fixes. Applies to linting that happens due to document changes. Does not apply to lint-on-save.",
"type": "boolean",
"default": false,
"order": 3
}
}
},
"disabling": {
"type": "object",
"order": 5,
"properties": {
"disableWhenNoEslintConfig": {
"title": "Disable when no ESLint config is found",
"description": "Will do nothing when no ESLint config is found in either `package.json` or `.eslintrc` instead of showing an error.",
"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": "Disregard .eslintignore",
"description": "Lint all files, even files mentioned in a project's `.eslintignore` file.",
"type": "boolean",
"default": false,
"order": 1
},
"showRuleIdInMessage": {
"title": "Show Rule ID in Messages",
"type": "boolean",
"default": true,
"order": 2
},
"useCache": {
"title": "Use Cache",
"description": "When this package creates an instance of `ESLint`, it will try to re-use that instance when linting other files in your project. If you’re noticing odd behavior, disable this option and reload your window to see if it’s cache-related.",
"type": "boolean",
"default": true,
"order": 3
},
"enableLogging": {
"title": "Enable Logging",
"description": "Log diagnostic messages to the developer console. If you want to file a bug against `linter-eslint-node`, these messages may be useful.",
"type": "boolean",
"default": false,
"order": 4
}
}
}
},
"scripts": {
"lint": "eslint . --fix",
"postinstall": "patch-package",
"test.lint": "eslint .",
"test": "atom --test spec"
},
"atomTestRunner": "./spec/runner",
"dependencies": {
"atom-linter": "^10.0.0",
"atom-package-deps": "^8.0.0",
"compare-versions": "^4.1.3",
"eslint": "^8.9.0",
"lodash.get": "^4.4.2",
"ndjson": "^2.0.0",
"which": "^2.0.2"
}
}