eslint#RuleTester TypeScript Examples

The following examples show how to use eslint#RuleTester. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: no-useless-escape.ts    From eslint-plugin-jsonc with MIT License 5 votes vote down vote up
tester = new RuleTester({
    parser: require.resolve("jsonc-eslint-parser"),
})
Example #2
Source File: no-numeric-separators.ts    From eslint-plugin-jsonc with MIT License 5 votes vote down vote up
tester = new RuleTester({
    parser: require.resolve("jsonc-eslint-parser"),
    parserOptions: {
        ecmaVersion: 2021,
    },
})
Example #3
Source File: no-octal-escape.ts    From eslint-plugin-jsonc with MIT License 5 votes vote down vote up
tester = new RuleTester({
    parser: require.resolve("jsonc-eslint-parser"),
})
Example #4
Source File: no-octal-numeric-literals.ts    From eslint-plugin-jsonc with MIT License 5 votes vote down vote up
tester = new RuleTester({
    parser: require.resolve("jsonc-eslint-parser"),
    parserOptions: {
        ecmaVersion: 2020,
    },
})
Example #5
Source File: no-octal.ts    From eslint-plugin-jsonc with MIT License 5 votes vote down vote up
tester = new RuleTester({
    parser: require.resolve("jsonc-eslint-parser"),
    parserOptions: {
        ecmaVersion: 2020,
    },
})
Example #6
Source File: no-parenthesized.ts    From eslint-plugin-jsonc with MIT License 5 votes vote down vote up
tester = new RuleTester({
    parser: require.resolve("jsonc-eslint-parser"),
    parserOptions: {
        ecmaVersion: 2020,
    },
})
Example #7
Source File: no-plus-sign.ts    From eslint-plugin-jsonc with MIT License 5 votes vote down vote up
tester = new RuleTester({
    parser: require.resolve("jsonc-eslint-parser"),
    parserOptions: {
        ecmaVersion: 2020,
    },
})
Example #8
Source File: no-regexp-literals.ts    From eslint-plugin-jsonc with MIT License 5 votes vote down vote up
tester = new RuleTester({
    parser: require.resolve("jsonc-eslint-parser"),
})
Example #9
Source File: no-sparse-arrays.ts    From eslint-plugin-jsonc with MIT License 5 votes vote down vote up
tester = new RuleTester({
    parser: require.resolve("jsonc-eslint-parser"),
})
Example #10
Source File: no-template-literals.ts    From eslint-plugin-jsonc with MIT License 5 votes vote down vote up
tester = new RuleTester({
    parser: require.resolve("jsonc-eslint-parser"),
    parserOptions: {
        ecmaVersion: 2020,
    },
})
Example #11
Source File: no-undefined-value.ts    From eslint-plugin-jsonc with MIT License 5 votes vote down vote up
tester = new RuleTester({
    parser: require.resolve("jsonc-eslint-parser"),
})
Example #12
Source File: no-unicode-codepoint-escapes.ts    From eslint-plugin-jsonc with MIT License 5 votes vote down vote up
tester = new RuleTester({
    parser: require.resolve("jsonc-eslint-parser"),
    parserOptions: {
        ecmaVersion: 2020,
    },
})
Example #13
Source File: no-number-props.ts    From eslint-plugin-jsonc with MIT License 5 votes vote down vote up
tester = new RuleTester({
    parser: require.resolve("jsonc-eslint-parser"),
})
Example #14
Source File: object-curly-newline.ts    From eslint-plugin-jsonc with MIT License 5 votes vote down vote up
tester = new RuleTester({
    parser: require.resolve("jsonc-eslint-parser"),
})
Example #15
Source File: object-curly-spacing.ts    From eslint-plugin-jsonc with MIT License 5 votes vote down vote up
tester = new RuleTester({
    parser: require.resolve("jsonc-eslint-parser"),
})
Example #16
Source File: object-property-newline.ts    From eslint-plugin-jsonc with MIT License 5 votes vote down vote up
tester = new RuleTester({
    parser: require.resolve("jsonc-eslint-parser"),
})
Example #17
Source File: quote-props.ts    From eslint-plugin-jsonc with MIT License 5 votes vote down vote up
tester = new RuleTester({
    parser: require.resolve("jsonc-eslint-parser"),
})
Example #18
Source File: quotes.ts    From eslint-plugin-jsonc with MIT License 5 votes vote down vote up
tester = new RuleTester({
    parser: require.resolve("jsonc-eslint-parser"),
})
Example #19
Source File: sort-array-values.ts    From eslint-plugin-jsonc with MIT License 5 votes vote down vote up
tester = new RuleTester({
    parser: require.resolve("jsonc-eslint-parser"),
    parserOptions: {
        ecmaVersion: 2020,
    },
})
Example #20
Source File: sort-keys.ts    From eslint-plugin-jsonc with MIT License 5 votes vote down vote up
tester = new RuleTester({
    parser: require.resolve("jsonc-eslint-parser"),
})
Example #21
Source File: space-unary-ops.ts    From eslint-plugin-jsonc with MIT License 5 votes vote down vote up
tester = new RuleTester({
    parser: require.resolve("jsonc-eslint-parser"),
})
Example #22
Source File: valid-json-number.ts    From eslint-plugin-jsonc with MIT License 5 votes vote down vote up
tester = new RuleTester({
    parser: require.resolve("jsonc-eslint-parser"),
    parserOptions: {
        ecmaVersion: 2020,
    },
})
Example #23
Source File: no-parsing-error.ts    From eslint-plugin-jsonc with MIT License 5 votes vote down vote up
tester = new RuleTester({
    parser: require.resolve("jsonc-eslint-parser"),
    parserOptions: {
        ecmaVersion: 2020,
    },
})
Example #24
Source File: no-bigint-literals.ts    From eslint-plugin-jsonc with MIT License 5 votes vote down vote up
tester = new RuleTester({
    parser: require.resolve("jsonc-eslint-parser"),
    parserOptions: {
        ecmaVersion: 2020,
    },
})
Example #25
Source File: array-bracket-newline.ts    From eslint-plugin-jsonc with MIT License 5 votes vote down vote up
tester = new RuleTester({
    parser: require.resolve("jsonc-eslint-parser"),
})
Example #26
Source File: array-bracket-spacing.ts    From eslint-plugin-jsonc with MIT License 5 votes vote down vote up
tester = new RuleTester({
    parser: require.resolve("jsonc-eslint-parser"),
})
Example #27
Source File: array-element-newline.ts    From eslint-plugin-jsonc with MIT License 5 votes vote down vote up
tester = new RuleTester({
    parser: require.resolve("jsonc-eslint-parser"),
})
Example #28
Source File: auto.ts    From eslint-plugin-jsonc with MIT License 5 votes vote down vote up
tester = new RuleTester({
    parser: require.resolve("jsonc-eslint-parser"),
    parserOptions: {
        ecmaVersion: 2020,
    },
})
Example #29
Source File: comma-dangle.ts    From eslint-plugin-jsonc with MIT License 5 votes vote down vote up
tester = new RuleTester({
    parser: require.resolve("jsonc-eslint-parser"),
})