Skip to content

Commit

Permalink
updated eslint and make use of eslint-config-c74
Browse files Browse the repository at this point in the history
  • Loading branch information
fde31 committed Dec 13, 2018
1 parent 3a7d1bd commit 01c0f69
Show file tree
Hide file tree
Showing 5 changed files with 1,657 additions and 938 deletions.
8 changes: 8 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
**/node_modules

packages/xebra-communicator/lib/**

packages/xebra.js/dist/**
packages/xebra.js/lib/**
packages/xebra.js/docs/**
packages/xebra.js/examples/**
17 changes: 17 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
const OFF = 0;
const ERROR = 2;

module.exports = {
"extends": "c74",
"rules" : {
},
"env" : {
"es6": true,
"node": true,
"browser": true
},
parser: "babel-eslint",
"parserOptions": {
"sourceType": "module"
}
}
214 changes: 0 additions & 214 deletions .eslintrc.json

This file was deleted.

13 changes: 7 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,21 +25,22 @@
"build": "cross-env MW_RELEASE=false node ./scripts/build.js",
"build-release": "cross-env MW_RELEASE=true node ./scripts/build.js",
"clean": "node ./scripts/clean.js",
"lint": "eslint src/js packages/xebra.js/src packages/xebra-communicator/src -c ./.eslintrc.json",
"lint-fix": "eslint src -c ./.eslintrc.json --fix",
"lint": "eslint ./ -c ./.eslintrc.js",
"lint-fix": "eslint ./ -c ./.eslintrc.js --fix",
"postinstall": "node ./scripts/postinstall.js",
"prepublish": "yarn run test",
"publish": "node ./scripts/publish.js",
"serve": "node ./scripts/serve.js",
"setversion": "node ./scripts/setversion.js",
"test": "node ./scripts/test.js"
},
"dependencies": {},
"dependencies": {
"babel-eslint": "^10.0.1"
},
"devDependencies": {
"cross-env": "^3.2.4",
"eslint": "^3.17.1",
"eslint-config-recommended": "^1.5.0",
"eslint-plugin-react": "^6.10.0",
"eslint": "^5.10.0",
"eslint-config-c74": "^1.0.0",
"rimraf": "^2.6.2"
},
"private": true,
Expand Down
Loading

0 comments on commit 01c0f69

Please sign in to comment.