Skip to content

Commit 3c06626

Browse files
committed
remove node config
1 parent e278c1f commit 3c06626

File tree

5 files changed

+2
-23
lines changed

5 files changed

+2
-23
lines changed

bin/eslint-github-init.js

+2-4
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ const questions = [
3535
type: 'list',
3636
name: 'env',
3737
message: 'Which environment does this library target?',
38-
choices: ['browser', 'node'],
38+
choices: ['browser'],
3939
default: defaults.env
4040
},
4141
{
@@ -50,9 +50,7 @@ const questions = [
5050
inquirer.prompt(questions).then(answers => {
5151
const eslintrc = {extends: ['plugin:github/es6']}
5252

53-
if (answers.env === 'node') {
54-
eslintrc.extends.push('plugin:github/node')
55-
} else if (answers.project === 'app') {
53+
if (answers.project === 'app') {
5654
eslintrc.extends.push('plugin:github/app')
5755
} else if (answers.env === 'browser') {
5856
eslintrc.extends.push('plugin:github/browser')

docs/configs.md

-4
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,3 @@ Recommended rules when using Babel to transpile features from ES2015+.
2929
### `plugin:github/app`
3030

3131
Recommended rules when writing a browser application.
32-
33-
### `plugin:github/node`
34-
35-
Recommended rules when writing a node application.

lib/configs/node.js

-11
This file was deleted.

lib/index.js

-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ module.exports = {
2121
app: require('./configs/app'),
2222
browser: require('./configs/browser'),
2323
es6: require('./configs/es6'),
24-
node: require('./configs/node'),
2524
recommended: require('./configs/recommended'),
2625
typescript: require('./configs/typescript')
2726
}

package.json

-3
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,6 @@
2828
"url": "https://github.com/github/eslint-plugin-github/issues"
2929
},
3030
"homepage": "https://github.com/github/eslint-plugin-github#readme",
31-
"engines": {
32-
"node": ">=8.11.1"
33-
},
3431
"dependencies": {
3532
"@typescript-eslint/eslint-plugin": ">=2.5.0",
3633
"@typescript-eslint/parser": ">=2.5.0",

0 commit comments

Comments
 (0)