@jkba/eslint-config-angular 2.1.0 → 3.0.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/eslint.config.js CHANGED
@@ -1,11 +1,11 @@
1
1
  // @ts-check
2
2
 
3
- const eslint = require('@eslint/js');
4
- const tseslint = require('typescript-eslint');
5
- const angular = require('angular-eslint');
6
- const eslintPluginPrettierRecommended = require('eslint-plugin-prettier/recommended');
7
- const importPlugin = require('eslint-plugin-import');
8
- const rxjs = require('@smarttools/eslint-plugin-rxjs');
3
+ import eslint from '@eslint/js';
4
+ import tseslint from 'typescript-eslint';
5
+ import angular from 'angular-eslint';
6
+ import eslintPluginPrettierRecommended from 'eslint-plugin-prettier/recommended';
7
+ import importPlugin from 'eslint-plugin-import';
8
+ import rxjs from '@smarttools/eslint-plugin-rxjs';
9
9
 
10
10
  const config = tseslint.config(
11
11
  {
@@ -120,7 +120,7 @@ const config = tseslint.config(
120
120
  {
121
121
  type: 'attribute',
122
122
  prefix: 'app',
123
- style: 'kebab-case', // I just don't really agree with using camelCase. Material isn't using it neither.
123
+ style: 'kebab-case', // I just don't really agree with using camelCase. Material isn't using it either.
124
124
  },
125
125
  ],
126
126
 
@@ -166,7 +166,7 @@ const config = tseslint.config(
166
166
  eslintPluginPrettierRecommended,
167
167
  );
168
168
 
169
- module.exports = config;
169
+ export default config;
170
170
 
171
171
  // notes
172
172
 
package/index.js CHANGED
@@ -1,3 +1,3 @@
1
- const eslintconfig = require('./eslint.config.js');
1
+ import eslintconfig from './eslint.config.js';
2
2
 
3
- module.exports = eslintconfig;
3
+ export default eslintconfig;
package/package.json CHANGED
@@ -1,8 +1,14 @@
1
1
  {
2
2
  "name": "@jkba/eslint-config-angular",
3
- "version": "2.1.0",
3
+ "version": "3.0.0",
4
+ "type": "module",
4
5
  "description": "Opinionated ESLint config for Angular projects",
5
6
  "main": "index.js",
7
+ "exports": {
8
+ ".": "./index.js",
9
+ "./eslint.config": "./eslint.config.js",
10
+ "./prettier.config": "./prettier.config.js"
11
+ },
6
12
  "scripts": {
7
13
  "test": "echo \"Error: no test specified\" && exit 1"
8
14
  },
@@ -32,7 +38,7 @@
32
38
  },
33
39
  "homepage": "https://github.com/jmeinlschmidt/eslint-config-angular#readme",
34
40
  "peerDependencies": {
35
- "angular-eslint": "^19",
41
+ "angular-eslint": "^19||^20",
36
42
  "eslint": "^9",
37
43
  "@eslint/js": "^9",
38
44
  "eslint-config-prettier": ">=8",
@@ -1,4 +1,4 @@
1
- module.exports = {
1
+ export default {
2
2
  singleQuote: true,
3
3
  tabWidth: 2,
4
4
  bracketSameLine: true,
@@ -8,4 +8,4 @@ module.exports = {
8
8
  bracketSpacing: true,
9
9
  printWidth: 100,
10
10
  arrowParens: 'always',
11
- }
11
+ };