Skip to content

Commit

Permalink
feat: nest configs, allow underscore dangle
Browse files Browse the repository at this point in the history
  • Loading branch information
TobiTenno committed Mar 17, 2023
1 parent 4a499c0 commit 85d37ba
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 10 deletions.
6 changes: 6 additions & 0 deletions .eslintrc.js → configs/.eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,12 @@ module.exports = {
usePrettierrc: true,
},
],
'no-underscore-dangle': [
'error',
{
allow: ['__basedir', '__dirname'],
},
],
},
extends: ['airbnb-base', 'plugin:prettier/recommended'],
plugins: ['no-null'],
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
3 changes: 0 additions & 3 deletions index.js

This file was deleted.

15 changes: 8 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
"description": "Shared eslint configuration for Warframe Community Developers",
"scripts": {
"test": "npm run lint",
"lint": "eslint .",
"lint:fix": "eslint . --fix"
"lint": "eslint -c ./configs/.eslintrc.js .",
"lint:fix": "eslint -c ./configs/.eslintrc.js . --fix"
},
"repository": {
"type": "git",
Expand All @@ -24,10 +24,10 @@
},
"homepage": "https://github.com/WFCD/eslint-config#readme",
"exports": {
".": "./index.js",
"./esm": "./esm.js",
"./prettier": "./prettier.config.js",
"./typescript": "./typescript.js"
".": "./configs/.eslintrc.js",
"./esm": "./configs/.eslintrc.mjs",
"./prettier": "./configs/prettier.config.js",
"./typescript": "./configs/typescript.js"
},
"peerDependencies": {
"@babel/core": "^7.19.1",
Expand Down Expand Up @@ -84,5 +84,6 @@
]
],
"branches": "main"
}
},
"prettier": "./configs/prettier.config.js"
}

0 comments on commit 85d37ba

Please sign in to comment.