3.3.1 • Published 1 year ago
eslint-config-pyosh v3.3.1
eslint-config-pyosh
pyo-sh's ESLint rule set. Referenced by eslint-config-airbnb, (not based on).
Installation
Install eslint-config-pyosh package:
- Install the correct versions of each package, which are listed by the command:
npm info "eslint-config-pyosh" peerDependenciesif using npm 5+, use this shortcut
npx install-peerdeps --dev eslint-config-pyoshif using yarn, use this command
yarn add --peer --dev eslint-config-pyosh- Install via package manager:
npm install --save-dev eslint-config-pyoshor
yarn --dev eslint-config-pyoshUsage
eslint-config-pyosh
Rule about javascript, but it does not have babel setting. if you want only javascript rule setting, should set eslint babel
- eslint
- eslint-plugin-import
module.exports = {
extends: ["eslint-config-pyosh"],
};- CAUTION: if you are using
sourceType: module, you should add it in you config file
module.exports = {
parserOptions: {
sourceType: "module",
},
};eslint-config-pyosh/typescript
- @typescript-eslint/eslint-plugin
- @typescript-eslint/parser
- eslint-import-resolver-typescript
module.exports = {
extends: ["eslint-config-pyosh", "eslint-config-pyosh/typescript"],
};- CAUTION: if you are using
sourceType: module, you should add it in you config file
module.exports = {
parserOptions: {
sourceType: "module",
},
settings: {
"import/resolver": {
typescript: {
// if you have another tsconfig file, you should change it
// if not, you don't have to write it
project: ["./tsconfig.json"],
sourceType: "module",
},
},
},
};eslint-config-pyosh/prettier
- eslint-config-prettier
- eslint-plugin-prettier
module.exports = {
extends: [
"eslint-config-pyosh",
"eslint-config-pyosh/typescript",
"eslint-config-pyosh/prettier",
],
};3.3.1
1 year ago
3.2.3
1 year ago
3.2.2
2 years ago
3.2.1
2 years ago
3.1.7
2 years ago
3.1.6
2 years ago
3.1.5
2 years ago
3.1.4
2 years ago
3.1.3
2 years ago
3.1.2
2 years ago
3.1.1
2 years ago
3.0.3
2 years ago
3.0.2
2 years ago
3.0.1
2 years ago
1.2.1
2 years ago
1.1.2
2 years ago
1.1.1
2 years ago
1.1.0
2 years ago
1.0.1
2 years ago