@kunalnagarco/eslint-config 2.3.0-beta.2 → 2.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @kunalnagarco/eslint-config
2
2
 
3
+ ## 2.3.0
4
+
5
+ ### Minor Changes
6
+
7
+ - Refactor ESLint package to remove TypeScript
8
+
3
9
  ## 2.2.0
4
10
 
5
11
  ### Minor Changes
package/package.json CHANGED
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "name": "@kunalnagarco/eslint-config",
3
- "version": "2.3.0-beta.2",
3
+ "version": "2.3.0",
4
4
  "description": "An ESLint configuration for use across javascript projects",
5
5
  "repository": {
6
6
  "url": "git+https://github.com/kunalnagarco/ui.git"
7
7
  },
8
- "main": "src/index.js",
8
+ "main": "dist/index.js",
9
9
  "keywords": [
10
10
  "eslint",
11
11
  "eslint-config",
@@ -36,8 +36,7 @@
36
36
  "pack:run": "yarn pack"
37
37
  },
38
38
  "devDependencies": {
39
- "rimraf": "^5.0.5",
40
- "typescript": "^5.0.4"
39
+ "rimraf": "^5.0.5"
41
40
  },
42
41
  "peerDependencies": {
43
42
  "@typescript-eslint/eslint-plugin": ">=6.x",
package/rules/main.cjs ADDED
@@ -0,0 +1,25 @@
1
+ module.exports = {
2
+ extends: ['airbnb', 'airbnb-typescript', 'prettier'],
3
+ plugins: ['import', '@typescript-eslint', 'jest'],
4
+ env: {
5
+ browser: true,
6
+ es6: true,
7
+ jest: true,
8
+ },
9
+ parser: '@typescript-eslint/parser',
10
+ rules: {
11
+ 'import/order': [
12
+ 'error',
13
+ {
14
+ pathGroupsExcludedImportTypes: ['builtin'],
15
+ groups: [
16
+ 'builtin',
17
+ ['external', 'internal'],
18
+ 'parent',
19
+ ['sibling', 'index'],
20
+ ],
21
+ 'newlines-between': 'always',
22
+ },
23
+ ],
24
+ },
25
+ };
package/src/index.js DELETED
@@ -1,36 +0,0 @@
1
- const airbnbConfig = require('eslint-config-airbnb');
2
- const airbnbTypescriptConfig = require('eslint-config-airbnb-typescript');
3
- const prettierConfig = require('eslint-config-prettier');
4
- const importPlugin = require('eslint-plugin-import');
5
- const typescriptEslintPlugin = require('@typescript-eslint/eslint-plugin');
6
-
7
- module.exports = {
8
- airbnbConfig,
9
- airbnbTypescriptConfig,
10
- prettierConfig,
11
- plugins: {
12
- importPlugin,
13
- typescriptEslintPlugin,
14
- },
15
- env: {
16
- browser: true,
17
- es6: true,
18
- jest: true,
19
- },
20
- parser: '@typescript-eslint/parser',
21
- rules: {
22
- 'import/order': [
23
- 'error',
24
- {
25
- pathGroupsExcludedImportTypes: ['builtin'],
26
- groups: [
27
- 'builtin',
28
- ['external', 'internal'],
29
- 'parent',
30
- ['sibling', 'index'],
31
- ],
32
- 'newlines-between': 'always',
33
- },
34
- ],
35
- },
36
- };