Skip to content

Commit baab8bf

Browse files
committedJun 14, 2021
Rename to eslintrc.json + change test script
This to keep in sync with eslint-config-standard
1 parent 085b814 commit baab8bf

File tree

5 files changed

+11
-14
lines changed

5 files changed

+11
-14
lines changed
 

‎.eslintrc.js

-10
This file was deleted.

‎eslintrc.json

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"extends": "standard",
3+
"rules": {
4+
"semi": ["error", "always"],
5+
"no-extra-semi": "error"
6+
}
7+
}

‎index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
module.exports = require('./.eslintrc');
1+
module.exports = require('./eslintrc.json');

‎package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@
6060
"url": "https://github.com/standard/eslint-config-semistandard.git"
6161
},
6262
"scripts": {
63-
"test": "tape test/*.js | tap-spec",
64-
"lint": "eslint ."
63+
"lint": "eslint . --config=eslintrc.json",
64+
"test": "npm run lint && tape test/*.js"
6565
}
6666
}

‎test/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
const { CLIEngine } = require('eslint');
44
const test = require('tape');
55

6-
const configFile = require.resolve('../.eslintrc');
6+
const configFile = require.resolve('../eslintrc.json');
77
const linter = new CLIEngine({ configFile });
88

99
test('api: lintText', t => {

0 commit comments

Comments
 (0)
Please sign in to comment.