3.0.3 • Published 5 years ago

eslint-config-craft-ai v3.0.3

Weekly downloads
134
License
BSD-3-Clause
Repository
github
Last release
5 years ago

eslint-config-craft-ai

This is craft ai's ESLint configuration for es5 and es6.

Version Build License Dependencies Dev Dependencies

Usage

Basics

  • Install this package and every needed dependencies using
npm install --save-dev eslint eslint-config-craft-ai \
                       babel-eslint \ # Optional, if you are using Babel in your project
                       eslint-plugin-react \ # Optional, if your using React in your project
  • Create a .eslintrc file in your project's root with the following content
{
  "extends": "craft-ai"
}

Or choose one of the following configurations: craft-ai/base, craft-ai/react, craft-ai/base.babel, craft-ai/react.babel. Default is craft-ai/base.babel.

Configurations starting by craft-ai/react is for React applications and needs eslint-plugin-react to be installed.

Configurations ending by .babel requires babel-eslint.

  • Optionally, create a .eslintignore file to list paths that won't need any linting (see this for further details)

  • Optionally, add the following to your package.json file

{
  "scripts": {
    "lint": "eslint .",
    "fix_lint": "eslint --fix ."
  }
}

You can now run npm run lint to check if the rules are properly applied, and npm run fix_lint to let eslint fix what is fixable.

(for craft ai devs) Releasing a new version

  • Make sure the build of the master branch is passing
  • Checkout the master branch locally
git fetch
git checkout master
git reset --hard origin/master
  • Bump the version and push
npm version patch # or 'minor' or 'major'
git push origin master
git push --tags
3.0.3

5 years ago

3.0.2

5 years ago

2.3.0

7 years ago

2.2.5

7 years ago

2.2.4

7 years ago

2.2.3

7 years ago

2.2.2

7 years ago

2.2.1

7 years ago

2.2.0

7 years ago

2.1.2

8 years ago

2.1.1

8 years ago

2.1.0

8 years ago

2.0.3

8 years ago

2.0.2

8 years ago

2.0.1

8 years ago

2.0.0

8 years ago

1.0.1

8 years ago

1.0.0

8 years ago

0.0.5

8 years ago

0.0.4

8 years ago

0.0.3

8 years ago

0.0.2

8 years ago