flatlint 1.5.1 → 1.6.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/ChangeLog CHANGED
@@ -1,3 +1,8 @@
1
+ 2024.12.29, v1.6.0
2
+
3
+ feature:
4
+ - 7efe064 flatlint: add shorthands
5
+
1
6
  2024.12.29, v1.5.1
2
7
 
3
8
  feature:
@@ -1,11 +1,11 @@
1
- import {prepare} from '../parser/index.js';
1
+ import {prepare} from '#parser';
2
2
  import {
3
3
  isId,
4
4
  isIdentifier,
5
5
  isPunctuator,
6
6
  isQuote,
7
7
  isStringLiteral,
8
- } from '../types/types.js';
8
+ } from '#types';
9
9
 
10
10
  export const compare = (source, template) => {
11
11
  const templateTokens = prepare(template);
@@ -100,3 +100,4 @@ function equalId(a, b) {
100
100
 
101
101
  return isId(b.value);
102
102
  }
103
+
package/lib/flatlint.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import {loadPlugins} from '@putout/engine-loader';
2
+ import {parse} from '#parser';
2
3
  import {run} from './runner/runner.js';
3
- import {parse} from './parser/index.js';
4
4
 
5
5
  export function lint(source, overrides = {}) {
6
6
  const {fix = true, plugins: pluginNames = []} = overrides;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "flatlint",
3
- "version": "1.5.1",
3
+ "version": "1.6.0",
4
4
  "description": "JavaScript tokens-based linter",
5
5
  "main": "lib/flatlint.js",
6
6
  "type": "module",
@@ -14,6 +14,9 @@
14
14
  "#types": {
15
15
  "default": "./lib/types/types.js"
16
16
  },
17
+ "#parser": {
18
+ "default": "./lib/parser/index.js"
19
+ },
17
20
  "#flatlint": {
18
21
  "default": "./lib/flatlint.js"
19
22
  }
package/example/1.js DELETED
@@ -1 +0,0 @@
1
-