Add eslint/import plugin#143
Conversation
b549089 to
3f566bf
Compare
|
@SoleCincis @digorath you can go through together and merge it afterwards. |
|
I will update the PR towards the end of the year then. |
39778e3 to
5aeb575
Compare
|
updated with master after merging the typescript recommended and prettier part separately. |
ca77ee1 to
da386a7
Compare
|
I made research and contacted the CodeClimate support. |
|
No answer from CodeClimate, even after consultation in the meantime. They stay quite on this :( |
- added eslint/import plugin - enabled alphabetical sorting - enabled grouping
- added file extensions to analyze by CodeClimate https://docs.codeclimate.com/docs/eslint#extensions > By default, the ESLint engine only analyzes .js files. > If you want ESLint to analyze your JSX code and ES6 files, > you'll need to specify this in your .codeclimate.yml, as shown > in the example above.
- auto fixed most of them using `./node_modules/.bin/eslint . --fix` - manually update imports in `queries/index.js`
da386a7 to
bc7188e
Compare
- define settings more explicitly for the eslint import plugin to achieve better results
- removed `alphabetize` rule because codeclimate-eslint channel "eslint-7" is bundling an older version, that does not support it - see qltysh-archive/codeclimate-eslint#498 (comment)
- auto fixed most of them using `./node_modules/.bin/eslint ./src/**/* --fix
6388e6a to
e84f6f8
Compare
|
👉 View analysis in DeepCode’s Dashboard | Configure the bot👉 The DeepCode service and API will be deprecated in August, 2021. Here is the information how to migrate. Thank you for using DeepCode 🙏 ❤️ !If you are using our plugins, you might be interested in their successors: Snyk's JetBrains plugin and Snyk's VS Code plugin. |
|
Code Climate has analyzed commit e84f6f8 and detected 3 issues on this pull request. Here's the issue category breakdown:
View more on Code Climate. |
|
i made deeper research and found a solution: qltysh-archive/codeclimate-eslint#498 (comment) codeclimate successfully passes the analysis now: https://codeclimate.com/github/ikuseiGmbH/smart-village-app-app/builds/944 |
|
Replaced by #244 after cherry picking setup commits. |
This PR is a suggestion and feedback on rule configuration is welcome.
Changes proposed in this PR:
Added
importsplugin for eslint to take care of import sorting and grouping.import/order.The only manually changed files in this PR are:
Fixes #128