Skip to content

Commit

Permalink
Merge pull request #18 from Agoric/standardize-eslint-rules
Browse files Browse the repository at this point in the history
standardize eslint rules and eslint npm scripts
  • Loading branch information
katelynsills authored Feb 26, 2019
2 parents bc3f03f + e2eb1eb commit 5e67c7e
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
- ./node_modules
- run:
name: Lint
command: npm run lint
command: npm run lint-check
- run:
name: Test
command: npm test
7 changes: 5 additions & 2 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,14 +1,17 @@
module.exports = {
extends: ['airbnb', 'plugin:prettier/recommended'],
env: {
es6: true,
mocha: true,
es6: true, // supports new ES6 globals (e.g., new types such as Set)
},
rules: {
'implicit-arrow-linebreak': 'off',
'function-paren-newline': 'off',
'arrow-parens': 'off',
strict: 'off',
'no-console': 'off',
'no-unused-vars': ['error', { argsIgnorePattern: '^_' }],
'no-return-assign': 'off',
'no-param-reassign': 'off',
'no-restricted-syntax': ['off', 'ForOfStatement'],
},
};
2 changes: 1 addition & 1 deletion .npmignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@
test

# Settings
.travis.yml
.circleci
.eslintrc.js
.prettierrc.json
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@
"module": "index.js",
"scripts": {
"test": "node test/test.js",
"format": "prettier --write '**/*.{js,jsx}'",
"lint": "eslint '**/*.{js,jsx}'",
"create-cjs": "rollup index.js --file index-commonjs.js --format cjs"
"create-cjs": "rollup index.js --file index-commonjs.js --format cjs",
"lint-fix": "eslint --fix '**/*.{js,jsx}'",
"lint-check": "eslint '**/*.{js,jsx}'"
},
"repository": {
"type": "git",
Expand Down

0 comments on commit 5e67c7e

Please sign in to comment.