eslint-config-tamia 9.1.21 → 9.1.22

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/Readme.md CHANGED
@@ -1,8 +1,8 @@
1
1
  # eslint-config-tamia
2
2
 
3
- [![npm](https://img.shields.io/npm/v/eslint-config-tamia.svg)](https://www.npmjs.com/package/eslint-config-tamia) [![Node.js CI status](https://github.com/tamiadev/eslint-config-tamia/workflows/Node.js%20CI/badge.svg)](https://github.com/tamiadev/eslint-config-tamia/actions)
3
+ [![npm](https://img.shields.io/npm/v/eslint-config-tamia.svg)](https://www.npmjs.com/package/eslint-config-tamia) [![Node.js CI status](https://github.com/sapegin/eslint-config-tamia/workflows/Node.js%20CI/badge.svg)](https://github.com/sapegin/eslint-config-tamia/actions)
4
4
 
5
- This package provides [Tâmia’s](http://tamiadev.github.io/tamia/) `.eslintrc` as an extensible shared config. Based on [eslint-config-airbnb](https://github.com/airbnb/javascript/tree/master/packages/eslint-config-airbnb).
5
+ This package provides a shared ESLint config that I use on all my projects.
6
6
 
7
7
  **Should be used with [Prettier](https://prettier.io/), has no own code style rules.**
8
8
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "eslint-config-tamia",
3
3
  "description": "Tâmia ESLint config",
4
- "version": "9.1.21",
4
+ "version": "9.1.22",
5
5
  "type": "module",
6
6
  "main": "index.mjs",
7
7
  "exports": {
@@ -25,7 +25,7 @@
25
25
  },
26
26
  "repository": {
27
27
  "type": "git",
28
- "url": "https://github.com/tamiadev/eslint-config-tamia"
28
+ "url": "https://github.com/sapegin/eslint-config-tamia"
29
29
  },
30
30
  "keywords": [
31
31
  "eslintconfig",
@@ -37,9 +37,9 @@
37
37
  },
38
38
  "license": "MIT",
39
39
  "bugs": {
40
- "url": "https://github.com/tamiadev/eslint-config-tamia/issues"
40
+ "url": "https://github.com/sapegin/eslint-config-tamia/issues"
41
41
  },
42
- "homepage": "https://github.com/tamiadev/eslint-config-tamia",
42
+ "homepage": "https://github.com/sapegin/eslint-config-tamia",
43
43
  "devDependencies": {
44
44
  "@types/eslint__js": "^8.42.3",
45
45
  "@types/react": "^18.3.5",
package/rules/unicorn.mjs CHANGED
@@ -4,8 +4,16 @@ export default [
4
4
  eslintPluginUnicorn.configs['flat/recommended'],
5
5
  {
6
6
  rules: {
7
- // Opinionated, doesn't allow Button.tsx
8
- 'unicorn/filename-case': 'off',
7
+ // Require camelCase (getIt.ts) and PascalCase (Box.tsx) file names
8
+ 'unicorn/filename-case': [
9
+ 'error',
10
+ {
11
+ cases: {
12
+ camelCase: true,
13
+ pascalCase: true,
14
+ },
15
+ },
16
+ ],
9
17
  // Opinionated, sometimes you need it
10
18
  'unicorn/no-array-reduce': 'off',
11
19
  // This is too opinionated