Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 12 additions & 17 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,19 +1,14 @@
module.exports = {
parser: "@typescript-eslint/parser",
extends: [
"plugin:@typescript-eslint/recommended",
"plugin:prettier/recommended",
],
plugins: ["simple-import-sort", "import"],
parserOptions: {
ecmaVersion: 12,
sourceType: "module",
},
rules: {
"simple-import-sort/imports": "error",
"simple-import-sort/exports": "error",
"import/first": "error",
"import/newline-after-import": "error",
"import/no-duplicates": "error",
},
extends: ["eslint-config-codely/typescript"],
overrides: [
{
files: ["*.ts", "*.tsx"],
parserOptions: {
project: ["./tsconfig.json"],
},
rules: {
"@typescript-eslint/no-floating-promises": "warn",
},
},
],
};
8 changes: 3 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -304,12 +304,10 @@ it to the end user in a very friendly way 😇:
### 🧰 Tooling already configured

- [TypeScript](https://typescriptlang.org) (v4)
- [Prettier](https://prettier.io)
- [Webpack](https://webpack.js.org)
- [ESLint](https://eslint.org) with:
- [Simple Import Sort](https://github.com/lydell/eslint-plugin-simple-import-sort)
- [Import plugin](https://github.com/benmosher/eslint-plugin-import)
- And a few other ES2015+ related rules
- [ESLint](https://eslint.org/) with:
- [Codely's config](https://github.com/lydell/eslint-plugin-simple-import-sort/) (includes ESLint's recommended rules, Prettier, Import plugin and more)
- [Jest plugin](https://www.npmjs.com/package/eslint-plugin-jest)
- [Jest](https://jestjs.io) with [DOM Testing Library](https://testing-library.com/docs/dom-testing-library/intro)
- [GitHub Action workflows](https://github.com/CodelyTV/figma-plugin-skeleton/actions) set up to run tests and linting
on push
Expand Down
Loading