3.3.1 • Published 6 days 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" peerDependencies
if using npm 5+, use this shortcut
npx install-peerdeps --dev eslint-config-pyosh
if using yarn, use this command
yarn add --peer --dev eslint-config-pyosh
- Install via package manager:
npm install --save-dev eslint-config-pyosh
or
yarn --dev eslint-config-pyosh
Usage
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
6 days ago
3.2.3
6 days ago
3.2.2
7 months ago
3.2.1
7 months ago
3.1.7
7 months ago
3.1.6
7 months ago
3.1.5
7 months ago
3.1.4
7 months ago
3.1.3
7 months ago
3.1.2
7 months ago
3.1.1
7 months ago
3.0.3
7 months ago
3.0.2
7 months ago
3.0.1
7 months ago
1.2.1
7 months ago
1.1.2
7 months ago
1.1.1
7 months ago
1.1.0
7 months ago
1.0.1
7 months ago