Skip to content

Commit

Permalink
Update: Use a single file for general config (#181)
Browse files Browse the repository at this point in the history
* Update: Use a single file for general config

* Update dependencies to match main branch
  • Loading branch information
stormwarning authored Feb 22, 2021
1 parent ae694d1 commit b214222
Show file tree
Hide file tree
Showing 8 changed files with 115 additions and 134 deletions.
5 changes: 5 additions & 0 deletions .changeset/stale-papayas-fail.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@zazen/eslint-config': patch
---

Use a single file for general config
1 change: 0 additions & 1 deletion .prettierignore

This file was deleted.

12 changes: 0 additions & 12 deletions best-practices.js

This file was deleted.

7 changes: 0 additions & 7 deletions code-style.js

This file was deleted.

12 changes: 9 additions & 3 deletions index.js
Original file line number Diff line number Diff line change
@@ -1,17 +1,23 @@
module.exports = {
parser: 'babel-eslint',
parserOptions: {
ecmaVersion: 2020,
ecmaVersion: 2021,
sourceType: 'module',
},
env: {
browser: true,
es6: true,
es2021: true,
node: true,
},
plugins: ['prefer-let'],
extends: ['standard', './code-style.js', './best-practices.js'],
/**
* @see https://github.com/standard/eslint-config-standard
* @see https://github.com/prettier/eslint-plugin-prettier
*/
extends: ['standard', 'plugin:prettier/recommended'],
rules: {
'no-console': 'warn',

/**
* @see https://github.com/cowboyd/eslint-plugin-prefer-let
*/
Expand Down
57 changes: 24 additions & 33 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

152 changes: 75 additions & 77 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,81 +1,79 @@
{
"name": "@zazen/eslint-config",
"description": "Lint JavaScript, free of weariness and confusion",
"license": "ISC",
"author": "Jeff <rustyangel@gmail.com> (https://tidaltheory.co)",
"homepage": "https://github.com/stormwarning/zazen-eslint-config",
"repository": "stormwarning/zazen-eslint-config",
"version": "2.1.1",
"scripts": {
"changeset": "changeset add",
"eslint-check": "eslint --print-config . | eslint-config-prettier-check",
"lint": "eslint '**/*.js'",
"release": "changeset publish",
"test": "npm run lint"
},
"optionalDependencies": {
"eslint-plugin-vue": "7.6.x"
},
"dependencies": {
"babel-eslint": "10.1.0",
"eslint-config-prettier": "8.0.0",
"eslint-config-standard": "16.0.2",
"eslint-plugin-import": "2.22.1",
"eslint-plugin-node": "11.1.0",
"eslint-plugin-prefer-let": "1.1.0",
"eslint-plugin-prettier": "3.3.1",
"eslint-plugin-promise": "4.3.1",
"eslint-plugin-standard": "5.0.0"
},
"peerDependencies": {
"eslint": ">=6",
"prettier": ">=1.18"
},
"devDependencies": {
"@changesets/changelog-github": "0.2.8",
"@changesets/cli": "2.14.x",
"eslint": "7.20.x",
"husky": "4.3.x",
"lint-staged": "10.5.x",
"prettier": "2.2.x",
"prettier-plugin-packagejson": "2.2.x"
},
"keywords": [
"eslint-config",
"standard style"
"name": "@zazen/eslint-config",
"version": "2.1.1",
"description": "Lint JavaScript, free of weariness and confusion",
"keywords": [
"eslint-config",
"standard style"
],
"homepage": "https://github.com/stormwarning/zazen-eslint-config",
"repository": "stormwarning/zazen-eslint-config",
"license": "ISC",
"author": "Jeff <rustyangel@gmail.com> (https://tidaltheory.co)",
"scripts": {
"changeset": "changeset add",
"eslint-check": "eslint --print-config . | eslint-config-prettier-check",
"lint": "eslint '**/*.js'",
"release": "changeset publish",
"test": "npm run lint"
},
"husky": {
"hooks": {
"pre-commit": "lint-staged"
}
},
"lint-staged": {
"*.js": [
"eslint --fix",
"git add"
],
"husky": {
"hooks": {
"pre-commit": "lint-staged"
}
},
"lint-staged": {
"*.js": [
"eslint --fix",
"git add"
],
"package.json": [
"prettier --write",
"git add"
]
},
"prettier": {
"arrowParens": "always",
"semi": false,
"singleQuote": true,
"tabWidth": 4,
"trailingComma": "all"
},
"changelog": {
"repo": "stormwarning/zazen-eslint-config",
"labels": {
"breaking": "💣 Breaking Change",
"removed": "🗑️ Removed",
"deprecated": "🚚 Deprecated",
"changed": "♻️ Changed",
"added": "🎁 Added",
"fixed": "🐛 Fixed",
"security": "🔒 Security"
}
"package.json": [
"prettier --write",
"git add"
]
},
"prettier": {
"semi": false,
"singleQuote": true,
"trailingComma": "all"
},
"dependencies": {
"babel-eslint": "10.1.0",
"eslint-config-prettier": "8.0.0",
"eslint-config-standard": "16.0.2",
"eslint-plugin-import": "2.22.1",
"eslint-plugin-node": "11.1.0",
"eslint-plugin-prefer-let": "1.1.0",
"eslint-plugin-prettier": "3.3.1",
"eslint-plugin-promise": "4.3.1",
"eslint-plugin-standard": "5.0.0"
},
"devDependencies": {
"@changesets/changelog-github": "0.2.8",
"@changesets/cli": "2.14.x",
"eslint": "7.20.x",
"husky": "4.3.x",
"lint-staged": "10.5.x",
"prettier": "2.2.x",
"prettier-plugin-packagejson": "2.2.x"
},
"peerDependencies": {
"eslint": ">=6",
"prettier": ">=1.18"
},
"optionalDependencies": {
"eslint-plugin-vue": "7.6.x"
},
"changelog": {
"repo": "stormwarning/zazen-eslint-config",
"labels": {
"breaking": "💣 Breaking Change",
"removed": "🗑️ Removed",
"deprecated": "🚚 Deprecated",
"changed": "♻️ Changed",
"added": "🎁 Added",
"fixed": "🐛 Fixed",
"security": "🔒 Security"
}
}
}
3 changes: 2 additions & 1 deletion vue.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
/**
* Vuejs project rules.
* @see https://eslint.vuejs.org/rules/
*/
module.exports = {
extends: ['plugin:vue/recommended', 'prettier/vue'],
extends: ['plugin:vue/recommended'],
}

0 comments on commit b214222

Please sign in to comment.