4.2.0 ā€¢ Published 2 years ago

@smccarrick/sm-config v4.2.0

Weekly downloads
7
License
MIT
Repository
github
Last release
2 years ago

Configuration for eslint, typescript and prettier for react.

Installation

npx install-peerdeps @smccarrick/sm-config -D

Eslint

create an .eslintrc.js with the config below

module.exports = {
  extends: ["./node_modules/@smccarrick/sm-config/.eslintrc.js"],
  parserOptions: {
    tsconfigRootDir: __dirname,
    project: ["./tsconfig.json", "./tsconfig.eslint.json"],
  },
}

tsconfig

create an tsconfig.eslint.json with the below config

{
  "extends": "@smccarrick/sm-config/tsconfig.json",
  "include": [".eslintrc.js"]
}

create an tsconfig.json to extend our config

{
  "extends": "@smccarrick/sm-config/tsconfig.json",
  "include": ["**/*"],
}

Prettier comes integrated with eslint so no need to extend this config unless you want to use prettier separately to format other files such as .yml, markdown ect.

Author

šŸ‘¤ Stephen Mccarrick smccarrick2804@gmail.com

šŸ¤ Contributing

Contributions, issues and feature requests are welcome!Feel free to check issues page.

Show your support

Give a ā­ļø if this project helped you!

4.0.0

2 years ago

4.2.0

2 years ago

3.3.4

3 years ago

3.3.3

3 years ago

3.3.2

3 years ago

3.2.0

3 years ago

3.1.0

3 years ago

3.0.0

3 years ago

2.1.1

4 years ago

2.0.1

4 years ago

2.0.0

4 years ago

1.1.0

4 years ago

1.0.3

4 years ago

1.0.0

4 years ago