Skip to content

Commit d1fab47

Browse files
committed
Add esllint
1 parent f37995c commit d1fab47

File tree

6 files changed

+2161
-12
lines changed

6 files changed

+2161
-12
lines changed

.eslintrc.json

Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
{
2+
// JS Files
3+
"root": true,
4+
"env": {
5+
"atomtest": true,
6+
"es6": true,
7+
"node": true,
8+
"browser": true
9+
},
10+
"globals": { "atom": "writable" },
11+
"parser": "babel-eslint",
12+
"parserOptions": {
13+
"ecmaFeatures": { "jsx": true },
14+
"ecmaVersion": 2018,
15+
"sourceType": "module"
16+
},
17+
"plugins": ["only-warn"],
18+
"extends": ["eslint:recommended"],
19+
"overrides": [
20+
{
21+
// TypeScript files
22+
"files": ["**/*.ts", "**/*.tsx"],
23+
"env": {
24+
"atomtest": true,
25+
"es6": true,
26+
"node": true,
27+
"browser": true
28+
},
29+
"globals": { "atom": "writable" },
30+
"parser": "@typescript-eslint/parser",
31+
"parserOptions": {
32+
"ecmaFeatures": { "jsx": true },
33+
"ecmaVersion": 2018,
34+
"sourceType": "module"
35+
},
36+
"plugins": ["@typescript-eslint", "only-warn"],
37+
"extends": [
38+
"eslint:recommended",
39+
"plugin:@typescript-eslint/eslint-recommended",
40+
"plugin:@typescript-eslint/recommended"
41+
],
42+
"rules": {
43+
"@typescript-eslint/explicit-function-return-type": "off",
44+
"@typescript-eslint/camelcase": "off",
45+
"@typescript-eslint/no-use-before-define": "off",
46+
"@typescript-eslint/member-delimiter-style": "off"
47+
}
48+
},
49+
{
50+
// CoffeeScript files
51+
"files": ["**/*.coffee"],
52+
"env": {
53+
"atomtest": true,
54+
"es6": true,
55+
"node": true,
56+
"browser": true
57+
},
58+
"globals": { "atom": "writable" },
59+
// "parser": "eslint-plugin-coffee",
60+
"parser": "eslint-plugin-coffee",
61+
"parserOptions": {
62+
"ecmaFeatures": { "jsx": true },
63+
"ecmaVersion": 2018,
64+
"sourceType": "module"
65+
},
66+
"plugins": ["coffee", "only-warn"],
67+
"extends": ["plugin:coffee/eslint-recommended"]
68+
}
69+
]
70+
}

.travis.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ julia:
77
env:
88
global:
99
- APM_TEST_PACKAGES="ink language-julia"
10-
- ATOM_LINT_WITH_BUNDLED_NODE="true"
1110

1211
matrix:
1312
- ""
@@ -25,7 +24,11 @@ matrix:
2524
# Sanity check for Atom Beta
2625
- os: linux
2726
julia: 1.3
28-
env: ATOM_CHANNEL=beta
27+
env:
28+
- ATOM_CHANNEL=beta
29+
- ESLINT_VERSION=6
30+
- LINT=true
31+
2932
allow_failures:
3033
- julia: nightly
3134
- env: ATOM_CHANNEL=beta

appveyor.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
### Project specific config ###
22
environment:
33
APM_TEST_PACKAGES: "ink language-julia"
4-
ATOM_LINT_WITH_BUNDLED_NODE: "true"
54

65
matrix:
76
- ATOM_CHANNEL: stable

lib_src/tslint.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212

1313
"semicolon": false,
1414
"whitespace": false,
15+
"no-trailing-whitespace": false,
1516
"curly": false,
1617
"variable-name": false,
1718
"arrow-parens": false,

0 commit comments

Comments
 (0)