Skip to content
This repository has been archived by the owner on Feb 3, 2023. It is now read-only.

MEMO: How to remove @connehito/eslint-config #107

Closed
mryhryki opened this issue Jan 27, 2023 · 0 comments
Closed

MEMO: How to remove @connehito/eslint-config #107

mryhryki opened this issue Jan 27, 2023 · 0 comments
Assignees

Comments

@mryhryki
Copy link
Contributor

mryhryki commented Jan 27, 2023

What is this?

This is a way to remove this ESLint config package if you want to remove it.

How to remove

0. Condition

The file with the following contents is located in the current directory.

// .eslintrc.js
module.exports = {
  extends: ['@connehito'],
  rules: {
    'import/no-unresolved': 'off',
  },
}

1. Merge config file

$ curl "https://raw.githubusercontent.com/Connehito/eslint-config-connehito/main/index.js" >> .eslintrc.js
// .eslintrc.js

       'import/no-unresolved': 'off',
    },
  }
+ module.exports = {
+   root: true,
+   env: {
+     es6: true,
+   ...
+   ],
+ }

2. Remove extends: ['@connehito']

// .eslintrc.js

  module.exports = {
-   extends: ['@connehito'],
    rules: {
      'import/no-unresolved': 'off',
    },

3. Merge the config file manually

// .eslintrc.js

-  module.exports = {
-   rules: {
-     'import/no-unresolved': 'off',
-   },
- }
  module.exports = {
    root: true,
    env: {
 // ...
          singleQuote: true,
        },
      ],
+     'import/no-unresolved': 'off',
    },
    overrides: [
      {

4. Remove @connehito/eslint-config

$ npm uninstall @connehito/eslint-config
# or
$ yarn remove @connehito/eslint-config
// package.json

  ...
-     "@connehito/eslint-config": "2.2.0",
  ...
@mryhryki mryhryki self-assigned this Jan 27, 2023
@mryhryki mryhryki mentioned this issue Jan 31, 2023
3 tasks
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant