Skip to content
This repository was archived by the owner on Dec 1, 2018. It is now read-only.

Commit 8c6b4e2

Browse files
committed
feat(eslint): Add @dixeed/eslint-config. Export eslint config
Add @dixeed/eslint-config/angularjs to eslint webpack build part
1 parent 9369594 commit 8c6b4e2

File tree

4 files changed

+22
-20
lines changed

4 files changed

+22
-20
lines changed

config/eslint/eslint.config.js

Lines changed: 2 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,5 @@
11
'use strict';
22

33
module.exports = {
4-
extends: ['eslint:recommended', 'angular'],
5-
parserOptions: {
6-
ecmaVersion: 6,
7-
sourceType: 'module',
8-
ecmaFeatures: {
9-
experimentalObjectRestSpread: true,
10-
},
11-
},
12-
env: {
13-
browser: true,
14-
node: true,
15-
es6: true,
16-
},
17-
rules: {
18-
'angular/no-service-method': 'off',
19-
'angular/log': 'warn',
20-
'no-console': 'warn',
21-
},
22-
};
4+
extends: ['@dixeed/eslint-config/angularjs'],
5+
};

eslint.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
'use strict';
2+
3+
module.exports = require('./config/eslint/eslint.config');

package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
"path": "cz-conventional-changelog"
3131
}
3232
},
33-
"files": ["bin", "scripts", "config"],
33+
"files": ["bin", "scripts", "config", "eslint.js"],
3434
"devDependencies": {
3535
"@commitlint/cli": "3.2.0",
3636
"@commitlint/config-angular": "3.1.1",
@@ -42,6 +42,7 @@
4242
"semantic-release": "7.0.2"
4343
},
4444
"dependencies": {
45+
"@dixeed/eslint-config": "1.0.0",
4546
"add-asset-html-webpack-plugin": "2.1.1",
4647
"autodll-webpack-plugin": "0.2.1",
4748
"autoprefixer": "7.1.4",
@@ -57,6 +58,7 @@
5758
"css-loader": "0.28.7",
5859
"eslint": "4.6.1",
5960
"eslint-config-angular": "0.5.0",
61+
"eslint-config-prettier": "2.6.0",
6062
"eslint-loader": "1.9.0",
6163
"eslint-plugin-angular": "3.1.1",
6264
"extract-text-webpack-plugin": "2.1.2",

yarn.lock

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,14 @@
3737
resolve-from "^3.0.0"
3838
semver "^5.3.0"
3939

40+
41+
version "1.0.0"
42+
resolved "https://registry.yarnpkg.com/@dixeed/eslint-config/-/eslint-config-1.0.0.tgz#348557c91995205ee02bbe32c90abd3039bc5008"
43+
dependencies:
44+
eslint-config-angular "0.5.0"
45+
eslint-config-prettier "2.6.0"
46+
eslint-plugin-angular "3.1.1"
47+
4048
"@semantic-release/commit-analyzer@^2.0.0":
4149
version "2.0.0"
4250
resolved "https://registry.yarnpkg.com/@semantic-release/commit-analyzer/-/commit-analyzer-2.0.0.tgz#924d1e2c30167c6a472bed9f66ee8f8e077489b2"
@@ -2207,6 +2215,12 @@ [email protected]:
22072215
version "0.5.0"
22082216
resolved "https://registry.yarnpkg.com/eslint-config-angular/-/eslint-config-angular-0.5.0.tgz#e0aae0132e39e7467df3f7547fec81a44d3685c4"
22092217

2218+
2219+
version "2.6.0"
2220+
resolved "https://registry.yarnpkg.com/eslint-config-prettier/-/eslint-config-prettier-2.6.0.tgz#f21db0ebb438ad678fb98946097c4bb198befccc"
2221+
dependencies:
2222+
get-stdin "^5.0.1"
2223+
22102224
22112225
version "1.9.0"
22122226
resolved "https://registry.yarnpkg.com/eslint-loader/-/eslint-loader-1.9.0.tgz#7e1be9feddca328d3dcfaef1ad49d5beffe83a13"

0 commit comments

Comments
 (0)