eslint-config-pyroarsonist 0.1.0 → 0.2.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/LICENSE.md CHANGED
@@ -1,6 +1,6 @@
1
1
  MIT License
2
2
 
3
- Copyright (c) [2022] [Pyroarsonist]
3
+ Copyright (c) [2026] [Pyroarsonist]
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
@@ -0,0 +1,56 @@
1
+ import js from '@eslint/js';
2
+ import prettier from 'eslint-config-prettier';
3
+ import perfectionist from 'eslint-plugin-perfectionist';
4
+ import unicorn from 'eslint-plugin-unicorn';
5
+ import globals from 'globals';
6
+ import tseslint from 'typescript-eslint';
7
+
8
+ export const recommended = [
9
+ js.configs.recommended,
10
+ unicorn.configs['flat/recommended'],
11
+ perfectionist.configs['recommended-natural'],
12
+ {
13
+ languageOptions: {
14
+ globals: { ...globals.browser, ...globals.node },
15
+ },
16
+ name: 'eslint-config-pyroarsonist/js-recommended',
17
+ rules: {
18
+ 'arrow-body-style': ['error', 'as-needed'],
19
+ curly: ['error', 'multi-line'],
20
+ 'import/no-dynamic-require': 'off',
21
+ 'import/prefer-default-export': 'off',
22
+ 'no-await-in-loop': 'off',
23
+ 'no-console': ['error', { allow: ['info', 'error', 'warn', 'trace', 'table'] }],
24
+ 'no-continue': 'off',
25
+ 'no-plusplus': 'off',
26
+ 'no-underscore-dangle': 'off',
27
+ 'unicorn/no-anonymous-default-export': 'off',
28
+ 'perfectionist/sort-objects': 'off',
29
+ },
30
+ },
31
+ prettier,
32
+ ];
33
+
34
+ export const typescript = tseslint.config(
35
+ ...recommended,
36
+ ...tseslint.configs.strictTypeChecked,
37
+ {
38
+ languageOptions: {
39
+ parserOptions: {
40
+ project: true,
41
+ },
42
+ },
43
+ name: 'eslint-config-pyroarsonist/ts-recommended',
44
+ rules: {
45
+ '@typescript-eslint/no-explicit-any': 'error',
46
+ },
47
+ },
48
+ prettier,
49
+ );
50
+
51
+ export default {
52
+ configs: {
53
+ recommended,
54
+ typescript,
55
+ },
56
+ };
package/package.json CHANGED
@@ -1,22 +1,22 @@
1
1
  {
2
2
  "name": "eslint-config-pyroarsonist",
3
- "version": "0.1.0",
4
- "main": ".eslintrc.js",
3
+ "version": "0.2.0",
4
+ "main": "eslint.config.js",
5
5
  "description": "Pyroarsonist's eslint config",
6
6
  "license": "MIT",
7
7
  "author": "Pyroarsonist <velikiydan@gmail.com>",
8
8
  "homepage": "https://github.com/Pyroarsonist/eslint-config-pyroarsonist#readme",
9
9
  "peerDependencies": {
10
- "@babel/core": "^7.24.5",
11
- "@babel/eslint-parser": "^7.24.5",
12
- "@babel/eslint-plugin": "^7.24.5",
13
- "@babel/preset-env": "^7.24.5",
14
- "eslint": "^8.57.0",
15
- "eslint-config-airbnb-base": "^15.0.0",
16
- "eslint-config-prettier": "^9.1.0",
17
- "eslint-plugin-import": "^2.29.1",
18
- "eslint-plugin-prettier": "^5.1.3",
19
- "prettier": "^3.2.5",
20
- "prettier-eslint": "^16.3.0"
21
- }
10
+ "@eslint/js": "^9.39.2",
11
+ "eslint": "^9.39.2",
12
+ "eslint-config-prettier": "^10.1.8",
13
+ "eslint-plugin-perfectionist": "^5.2.0",
14
+ "eslint-plugin-unicorn": "^62.0.0",
15
+ "globals": "^17.0.0",
16
+ "typescript-eslint": "^8.52.0"
17
+ },
18
+ "devDependencies": {
19
+ "prettier-config-pyroarsonist": "^0.0.3"
20
+ },
21
+ "prettier": "prettier-config-pyroarsonist"
22
22
  }
package/.babelrc DELETED
@@ -1,12 +0,0 @@
1
- {
2
- "presets": [
3
- [
4
- "@babel/preset-env",
5
- {
6
- "targets": {
7
- "node": "current"
8
- }
9
- }
10
- ]
11
- ]
12
- }
package/.eslintrc.js DELETED
@@ -1,22 +0,0 @@
1
- module.exports = {
2
- env: {
3
- node: true,
4
- },
5
- parser: '@babel/eslint-parser',
6
- extends: ['airbnb-base', 'prettier'],
7
- plugins: ['prettier', '@babel'],
8
- root: true,
9
- rules: {
10
- 'func-names': 'off',
11
- 'no-param-reassign': 'off',
12
- 'no-underscore-dangle': 'off',
13
- camelcase: 'off',
14
- 'import/prefer-default-export': 'off',
15
- 'no-await-in-loop': 'off',
16
- 'no-restricted-syntax': 'off',
17
- 'no-continue': 'off',
18
- 'import/no-dynamic-require': 'off',
19
- 'prettier/prettier': ['error'],
20
- curly: 'error',
21
- },
22
- };
package/.prettierrc.json DELETED
@@ -1,3 +0,0 @@
1
- {
2
- "singleQuote": true
3
- }