Skip to content

✅  Probably the fastest way to add ESLint to your project

Notifications You must be signed in to change notification settings

ecrmnn/init-eslintrc.js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 

Repository files navigation

eslintrc.js

Probably the fastest way to add ESLint to your project

What does it do?


One liner

bash <(curl https://raw.githubusercontent.com/ecrmnn/eslintrc.js/master/init.sh)

As an alias

You'll probably want eslint on another project too? Just pop this alias in your .bash_profile

alias eslint='bash <(curl https://raw.githubusercontent.com/ecrmnn/eslintrc.js/master/init.sh)'

WYSIWYG

Ok, ok I get it. You don't want to run some scary command and risk it all. Well, copy, inspect and (maybe) paste if you like.

printf "module.exports = {\n  extends: 'airbnb-base',\n  parserOptions: {\n    sourceType: 'script',\n  },\n  plugins: [\n    'import',\n  ],\n  rules: {\n    'curly': [\n      'error',\n      'all',\n    ],\n    'brace-style': [\n      'error',\n      '1tbs',\n      { 'allowSingleLine': false },\n    ],\n    'no-console': 'error',\n    'no-ternary': 'error',\n    'newline-before-return': 'error',\n  },\n};\n" > .eslintrc.js && [ -f package.json ] || echo {} > package.json && npm install eslint eslint-config-airbnb-base eslint-plugin-import -D

About

✅  Probably the fastest way to add ESLint to your project

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages