Skip to content
This repository was archived by the owner on Aug 7, 2023. It is now read-only.

Commit a1dd938

Browse files
committed
Move configuration to a configSchema
Move hte configuration to a key in the `package.json`, allowing Atom to be able to read the settings without having to load up the package code.
1 parent b226bfd commit a1dd938

File tree

2 files changed

+14
-15
lines changed

2 files changed

+14
-15
lines changed

lib/main.js

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,6 @@
11
'use babel';
22

33
export default {
4-
config: {
5-
rubyExecutablePath: {
6-
type: 'string',
7-
default: 'ruby',
8-
},
9-
ignoredExtensions: {
10-
type: 'array',
11-
default: ['erb', 'md'],
12-
items: {
13-
type: 'string',
14-
},
15-
},
16-
},
17-
184
activate: () => {
195
// We are now using steelbrain's package dependency package to install our
206
// dependencies.

package.json

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,25 @@
66
"repository": "https://github.com/AtomLinter/linter-ruby",
77
"license": "MIT",
88
"engines": {
9-
"atom": ">0.180.0"
9+
"atom": ">=1.4.0 <2.0.0"
1010
},
1111
"activationHooks": [
1212
"language-ruby:grammar-used",
1313
"language-ruby-on-rails:grammar-used"
1414
],
15+
"configSchema": {
16+
"rubyExecutablePath": {
17+
"type": "string",
18+
"default": "ruby"
19+
},
20+
"ignoredExtensions": {
21+
"type": "array",
22+
"default": ["erb", "md"],
23+
"items": {
24+
"type": "string"
25+
}
26+
}
27+
},
1528
"providedServices": {
1629
"linter": {
1730
"versions": {

0 commit comments

Comments
 (0)