Skip to content

Commit

Permalink
Rename to eslintrc.json + change test script
Browse files Browse the repository at this point in the history
This to keep in sync with eslint-config-standard
  • Loading branch information
voxpelli committed Jun 14, 2021
1 parent 085b814 commit baab8bf
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 14 deletions.
10 changes: 0 additions & 10 deletions .eslintrc.js

This file was deleted.

7 changes: 7 additions & 0 deletions eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"extends": "standard",
"rules": {
"semi": ["error", "always"],
"no-extra-semi": "error"
}
}
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
@@ -1 +1 @@
module.exports = require('./.eslintrc');
module.exports = require('./eslintrc.json');
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@
"url": "https://github.com/standard/eslint-config-semistandard.git"
},
"scripts": {
"test": "tape test/*.js | tap-spec",
"lint": "eslint ."
"lint": "eslint . --config=eslintrc.json",
"test": "npm run lint && tape test/*.js"
}
}
2 changes: 1 addition & 1 deletion test/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
const { CLIEngine } = require('eslint');
const test = require('tape');

const configFile = require.resolve('../.eslintrc');
const configFile = require.resolve('../eslintrc.json');
const linter = new CLIEngine({ configFile });

test('api: lintText', t => {
Expand Down

0 comments on commit baab8bf

Please sign in to comment.