@omer-x/eslint-config 1.0.4 → 1.0.6

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/index.js CHANGED
@@ -2,6 +2,7 @@ module.exports = {
2
2
  extends: [
3
3
  "./base",
4
4
  "./stylistic",
5
+ "./jsx",
5
6
  ],
6
7
  plugins: [
7
8
  "import",
package/jsx.js ADDED
@@ -0,0 +1,11 @@
1
+ module.exports = {
2
+ extends: [
3
+ "plugin:jsx-a11y/recommended",
4
+ ],
5
+ plugins: [
6
+ "jsx-a11y",
7
+ ],
8
+ rules: {
9
+ "jsx-a11y/no-autofocus": "off",
10
+ },
11
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@omer-x/eslint-config",
3
- "version": "1.0.4",
3
+ "version": "1.0.6",
4
4
  "description": "My favorite eslint rules",
5
5
  "author": "Omer Mecitoglu",
6
6
  "license": "MIT",
@@ -13,6 +13,13 @@
13
13
  "access": "public"
14
14
  },
15
15
  "main": "index.js",
16
+ "files": [
17
+ "base.js",
18
+ "index.js",
19
+ "jsx.js",
20
+ "stylistic.js",
21
+ "typescript.js"
22
+ ],
16
23
  "scripts": {
17
24
  "lint": "eslint"
18
25
  },
@@ -23,6 +30,7 @@
23
30
  "@stylistic/eslint-plugin": "^1.5.3",
24
31
  "@typescript-eslint/eslint-plugin": "^6.18.0",
25
32
  "eslint-plugin-import": "^2.29.1",
33
+ "eslint-plugin-jsx-a11y": "^6.8.0",
26
34
  "eslint-plugin-unused-imports": "^3.0.0"
27
35
  },
28
36
  "devDependencies": {
package/.eslintrc DELETED
@@ -1,7 +0,0 @@
1
- {
2
- "extends": "./index",
3
- "rules": {
4
- "no-undef": "off",
5
- "sort-keys": ["error", "asc", { "caseSensitive": true, "natural": false }]
6
- }
7
- }
@@ -1,30 +0,0 @@
1
- name: Publish Package to NPM
2
- on:
3
- release:
4
- types: [published]
5
- jobs:
6
- publish:
7
- runs-on: ubuntu-latest
8
- steps:
9
- - name: Checkout code
10
- uses: actions/checkout@v4
11
-
12
- - name: Setup Node.js
13
- uses: actions/setup-node@v4
14
- with:
15
- node-version: 'lts/*'
16
- registry-url: 'https://registry.npmjs.org'
17
-
18
- # - name: Install dependencies
19
- # run: npm install
20
-
21
- # - name: Run tests
22
- # run: npm test
23
-
24
- # - name: Build package
25
- # run: npm run build
26
-
27
- - name: Publish to NPM
28
- run: npm publish
29
- env:
30
- NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}