This package provides ESLint's shared config that designed to be strict as hell.
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.
Config | Description |
---|---|
default |
Includes js and ts configs |
js |
Includes JavaScript rules |
ts |
Includes TypeScript rules |
vue |
Includes rules for Vue.js |
import eslintGreenPie from 'eslint-config-greenpie';
export default [
...eslintGreenPie.configs.js
];
import eslintGreenPie from 'eslint-config-greenpie';
export default [
...eslintGreenPie.configs.js,
...eslintGreenPie.configs.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
];