@slango.configs/lint-staged 1.2.0 → 2.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/README.md CHANGED
@@ -1,13 +1,11 @@
1
1
  # ![Lint-staged](https://img.shields.io/badge/lint--staged-3AC486?style=flat-square) Slango Lint-Staged Configs (@slango.configs/lint-staged)
2
2
 
3
- This package exposes eslint configurations for easy setup, the following presets are available:
3
+ This package exposes lint-staged configurations for easy setup, the following presets are available:
4
4
 
5
5
  | Name | Description | Includes | Tasks |
6
6
  | ---------------------------- | ----------------------------------------------------------------------- | ------------------------------- | ------------------------------------------------ |
7
7
  | `debug` | Intended for debugging purposes | - | fail |
8
8
  | `default` | Preset to be used in no-code packages | - | prettier |
9
- | `javascript` | Preset to be used in javascript packages | `default` | prettier + eslint |
10
- | `typescript` | Preset to be used in typescript packages | `default` + `javascript` | prettier + eslint + typescript check |
11
9
  | `javascript-oxlint` | `javascript` for packages linted with oxlint (`@slango.configs/oxlint`) | `default` | prettier + oxlint |
12
10
  | `typescript-oxlint` | `typescript` for packages linted with oxlint (`@slango.configs/oxlint`) | `default` + `javascript-oxlint` | prettier + oxlint + typescript check |
13
11
  | `typescript-oxlint-no-tests` | `typescript-oxlint` for packages without tests | `default` + `javascript-oxlint` | prettier + oxlint + typescript check (no vitest) |
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@slango.configs/lint-staged",
3
- "version": "1.2.0",
3
+ "version": "2.0.0",
4
4
  "private": false,
5
5
  "description": "Slango lint-staged configs",
6
6
  "repository": {
@@ -22,7 +22,7 @@
22
22
  "lint-staged": "^17.4.1"
23
23
  },
24
24
  "devDependencies": {
25
- "@slango.configs/oxlint": "0.1.0",
25
+ "@slango.configs/oxlint": "0.1.2",
26
26
  "oxlint": "1.81.0"
27
27
  },
28
28
  "scripts": {
package/src/commands.js CHANGED
@@ -1,8 +1,5 @@
1
1
  export const prettier = 'prettier --ignore-unknown --write';
2
2
 
3
- export const eslintFix =
4
- 'eslint --fix --max-warnings 0 --cache --cache-strategy content --no-ignore';
5
-
6
3
  export const oxlintFix = 'oxlint --fix --max-warnings 0';
7
4
 
8
5
  export const oxlintTypeAwareFix = 'oxlint --type-aware --fix --max-warnings 0';
package/src/tasks.js CHANGED
@@ -1,5 +1,4 @@
1
1
  import {
2
- eslintFix,
3
2
  oxlintFix,
4
3
  oxlintTypeAwareFix,
5
4
  prettier,
@@ -11,15 +10,6 @@ import { allGlob, javascriptGlob, typescriptGlob } from './globs.js';
11
10
  export const prettierAllTask = {
12
11
  [allGlob]: [prettier],
13
12
  };
14
-
15
- export const eslintJavascriptTask = {
16
- [javascriptGlob]: [eslintFix],
17
- };
18
-
19
- export const eslintTypescriptTask = {
20
- [typescriptGlob]: [eslintFix],
21
- };
22
-
23
13
  // oxlint applies JS-plugin fixes (perfectionist) in a single pass, so sorting
24
14
  // imports and then their named specifiers needs a second run to converge.
25
15
  export const oxlintJavascriptTask = {
@@ -1,8 +0,0 @@
1
- import { eslintJavascriptTask, prettierAllTask } from '../tasks.js';
2
-
3
- const javascriptConfig = {
4
- ...prettierAllTask,
5
- ...eslintJavascriptTask,
6
- };
7
-
8
- export default javascriptConfig;
@@ -1,17 +0,0 @@
1
- import deepmerge from 'deepmerge';
2
-
3
- import {
4
- buildCheckTypescriptTask,
5
- eslintJavascriptTask,
6
- eslintTypescriptTask,
7
- prettierAllTask,
8
- vitestTypescriptTask,
9
- } from '../tasks.js';
10
-
11
- const typescriptConfig = {
12
- ...prettierAllTask,
13
- ...eslintJavascriptTask,
14
- ...deepmerge.all([eslintTypescriptTask, buildCheckTypescriptTask, vitestTypescriptTask]),
15
- };
16
-
17
- export default typescriptConfig;