eslint-config-greenpie
v8.10.0
Published
GreenPie's ESLint config file
Downloads
827
Maintainers
Readme
Pretty tough ESLint config
This package provides ESLint's shared config that designed to be strict as hell.
Usage
Install configurations
npm install typescript-eslint eslint-config-greenpie --save-dev
And then add to local eslint.config.js
following configuration
import tsEslint from 'typescript-eslint';
import eslintGreenPie from 'eslint-config-greenpie';
export default tsEslint.config(
...eslintGreenPie.configs.default,
...eslintGreenPie.configs.vue
);
or see more examples below.
Configs
| Config | Description |
|-----------|--------------------------------|
| default
| Includes js
and ts
configs |
| js
| Includes JavaScript rules |
| ts
| Includes TypeScript rules |
| vue
| Includes rules for Vue.js |
Examples
JS/TS rules
import eslintGreenPie from 'eslint-config-greenpie';
export default [
...eslintGreenPie.configs.js
];
JS + Vue
import eslintGreenPie from 'eslint-config-greenpie';
export default [
...eslintGreenPie.configs.js,
...eslintGreenPie.configs.vue
];
JS + TS + Vue
You will probably need to configure another parser for the <script>
tag.
import eslintGreenPie from 'eslint-config-greenpie';
export default [
...eslintGreenPie.configs.default,
...eslintGreenPie.configs.vue
];