UNPKG

@madebywild/eslint-config-base

Version:
44 lines (32 loc) 929 B
--- name: Eslint Base Config menu: Code Linting route: /code-linting/eslint-config-base --- import index from '!!raw-loader!.' import { Code } from 'gatsby-theme-docz/src/components/Code' # Eslint Base Config WILD Eslint configuration for Javascript based projects - .js. ## Installation To use it in your project, you need to install the peerDependencies of this package. We recommend to use [install-peerdeps](https://www.npmjs.com/package/install-peerdeps) ### If you're using npm >=7 peerDependencies should be installed by default ### If you're using npm >=5 ```bash npx install-peerdeps @madebywild/eslint-config-base --dev ``` ### If you're using npm <5 ```bash npm install -g install-peerdeps && install-peerdeps @madebywild/eslint-config-base --dev ``` Then add this to a `.eslintrc` file: ```json { "extends": "@madebywild/eslint-config-base" } ``` ## Rules <Code className="javascript"> {index} </Code>