@socialswell/lint-editor-config
v1.1.0
Published
lint editor configs for swell
Maintainers
Keywords
Readme
Lint Editor Config
.editorconfig
Currently there is no way to import editorconfig files in your repo. For now, you need to copy the editorconfig to your repo:
yarn add @socialswell/lint-editor-configcp ./node_modules/@socialswell/lint-editor-config/.editorconfig ./
prettier
You can easily import and extend the prettier config in your project:
yarn add @swell/lint-editor-config- create a new .prettierrc.js in your project with the following contents:
module.exports = {
...require('@socialswell/lint-editor-config/.prettierrc'),
};eslint
You can easily import and extend the eslint config in your project:
module.exports = {
extends: './node_modules/@socialswell/lint-editor-config/index.js',
parserOptions: {
project: './tsconfig.json',
sourceType: 'module',
},
};tsconfig
{
"extends": "./node_modules/@socialswell/lint-editor-config/tsconfig.json",
"compilerOptions": {
"outDir": "./dist"
}
}