1.1.0 • Published 4 years ago

@socialswell/lint-editor-config v1.1.0

Weekly downloads
-
License
ISC
Repository
-
Last release
4 years ago

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-config
  • cp ./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"
  }
}