Skip to content

Commit

Permalink
remove node config
Browse files Browse the repository at this point in the history
  • Loading branch information
koddsson committed Mar 17, 2020
1 parent e278c1f commit 3c06626
Show file tree
Hide file tree
Showing 5 changed files with 2 additions and 23 deletions.
6 changes: 2 additions & 4 deletions bin/eslint-github-init.js
Expand Up @@ -35,7 +35,7 @@ const questions = [
type: 'list',
name: 'env',
message: 'Which environment does this library target?',
choices: ['browser', 'node'],
choices: ['browser'],
default: defaults.env
},
{
Expand All @@ -50,9 +50,7 @@ const questions = [
inquirer.prompt(questions).then(answers => {
const eslintrc = {extends: ['plugin:github/es6']}

if (answers.env === 'node') {
eslintrc.extends.push('plugin:github/node')
} else if (answers.project === 'app') {
if (answers.project === 'app') {
eslintrc.extends.push('plugin:github/app')
} else if (answers.env === 'browser') {
eslintrc.extends.push('plugin:github/browser')
Expand Down
4 changes: 0 additions & 4 deletions docs/configs.md
Expand Up @@ -29,7 +29,3 @@ Recommended rules when using Babel to transpile features from ES2015+.
### `plugin:github/app`

Recommended rules when writing a browser application.

### `plugin:github/node`

Recommended rules when writing a node application.
11 changes: 0 additions & 11 deletions lib/configs/node.js

This file was deleted.

1 change: 0 additions & 1 deletion lib/index.js
Expand Up @@ -21,7 +21,6 @@ module.exports = {
app: require('./configs/app'),
browser: require('./configs/browser'),
es6: require('./configs/es6'),
node: require('./configs/node'),
recommended: require('./configs/recommended'),
typescript: require('./configs/typescript')
}
Expand Down
3 changes: 0 additions & 3 deletions package.json
Expand Up @@ -28,9 +28,6 @@
"url": "https://github.com/github/eslint-plugin-github/issues"
},
"homepage": "https://github.com/github/eslint-plugin-github#readme",
"engines": {
"node": ">=8.11.1"
},
"dependencies": {
"@typescript-eslint/eslint-plugin": ">=2.5.0",
"@typescript-eslint/parser": ">=2.5.0",
Expand Down

0 comments on commit 3c06626

Please sign in to comment.