]> git.ipfire.org Git - thirdparty/Chart.js.git/commitdiff
JS test files should have tabs to correctly lint (#7844)
authorEvert Timberg <evert.timberg+github@gmail.com>
Sun, 4 Oct 2020 11:49:14 +0000 (07:49 -0400)
committerGitHub <noreply@github.com>
Sun, 4 Oct 2020 11:49:14 +0000 (07:49 -0400)
test/fixtures/controller.doughnut/doughnut-circumference-per-dataset.js
test/fixtures/controller.doughnut/doughnut-rotation-per-dataset.js

index 677c14a5e6cde2c8094381d47b348041a99cd674..526c15b1e2905a9319f7cd4e0532f9f70f9bd594 100644 (file)
@@ -1,33 +1,33 @@
 module.exports = {
-    config: {
-        type: 'doughnut',
-        data: {
-            labels: ['A', 'B', 'C', 'D', 'E'],
-            datasets: [{
-                data: [1, 5, 10, 50, 100],
-                backgroundColor: [
-                    'rgba(255, 99, 132, 0.8)',
-                    'rgba(54, 162, 235, 0.8)',
-                    'rgba(255, 206, 86, 0.8)',
-                    'rgba(75, 192, 192, 0.8)',
-                    'rgba(153, 102, 255, 0.8)'
-                ],
-                borderWidth: 1,
-                borderColor: [
-                    'rgb(255, 99, 132)',
-                    'rgb(54, 162, 235)',
-                    'rgb(255, 206, 86)',
-                    'rgb(75, 192, 192)',
-                    'rgb(153, 102, 255)'
-                ],
-                circumference: 180
-            }]
-        },
-        options: {
-            circumference: 57.32,
-            responsive: false,
-            legend: false,
-            title: false
-        }
-    }
-}
+       config: {
+               type: 'doughnut',
+               data: {
+                       labels: ['A', 'B', 'C', 'D', 'E'],
+                       datasets: [{
+                               data: [1, 5, 10, 50, 100],
+                               backgroundColor: [
+                                       'rgba(255, 99, 132, 0.8)',
+                                       'rgba(54, 162, 235, 0.8)',
+                                       'rgba(255, 206, 86, 0.8)',
+                                       'rgba(75, 192, 192, 0.8)',
+                                       'rgba(153, 102, 255, 0.8)'
+                               ],
+                               borderWidth: 1,
+                               borderColor: [
+                                       'rgb(255, 99, 132)',
+                                       'rgb(54, 162, 235)',
+                                       'rgb(255, 206, 86)',
+                                       'rgb(75, 192, 192)',
+                                       'rgb(153, 102, 255)'
+                               ],
+                               circumference: 180
+                       }]
+               },
+               options: {
+                       circumference: 57.32,
+                       responsive: false,
+                       legend: false,
+                       title: false
+               }
+       }
+};
index 03ddaebab811cfc0eb3ef1bc2f2b0b59890893af..fa6d103c7a43cf3564642a4bcc107ee6919e9911 100644 (file)
@@ -1,51 +1,51 @@
 module.exports = {
-    config: {
-        type: 'doughnut',
-        data: {
-            labels: ['A', 'B', 'C', 'D', 'E'],
-            datasets: [{
-                data: [1, 5, 10, 50, 100],
-                backgroundColor: [
-                    'rgba(255, 99, 132, 0.8)',
-                    'rgba(54, 162, 235, 0.8)',
-                    'rgba(255, 206, 86, 0.8)',
-                    'rgba(75, 192, 192, 0.8)',
-                    'rgba(153, 102, 255, 0.8)'
-                ],
-                borderWidth: 1,
-                borderColor: [
-                    'rgb(255, 99, 132)',
-                    'rgb(54, 162, 235)',
-                    'rgb(255, 206, 86)',
-                    'rgb(75, 192, 192)',
-                    'rgb(153, 102, 255)'
-                ],
-                rotation: -90
-            }, {
-                data: [1, 5, 10, 50, 100],
-                backgroundColor: [
-                    'rgba(255, 99, 132, 0.8)',
-                    'rgba(54, 162, 235, 0.8)',
-                    'rgba(255, 206, 86, 0.8)',
-                    'rgba(75, 192, 192, 0.8)',
-                    'rgba(153, 102, 255, 0.8)'
-                ],
-                borderWidth: 1,
-                borderColor: [
-                    'rgb(255, 99, 132)',
-                    'rgb(54, 162, 235)',
-                    'rgb(255, 206, 86)',
-                    'rgb(75, 192, 192)',
-                    'rgb(153, 102, 255)'
-                ],
-                rotation: 0
-            }]
-        },
-        options: {
-            circumference: 180,
-            responsive: false,
-            legend: false,
-            title: false
-        }
-    }
-}
+       config: {
+               type: 'doughnut',
+               data: {
+                       labels: ['A', 'B', 'C', 'D', 'E'],
+                       datasets: [{
+                               data: [1, 5, 10, 50, 100],
+                               backgroundColor: [
+                                       'rgba(255, 99, 132, 0.8)',
+                                       'rgba(54, 162, 235, 0.8)',
+                                       'rgba(255, 206, 86, 0.8)',
+                                       'rgba(75, 192, 192, 0.8)',
+                                       'rgba(153, 102, 255, 0.8)'
+                               ],
+                               borderWidth: 1,
+                               borderColor: [
+                                       'rgb(255, 99, 132)',
+                                       'rgb(54, 162, 235)',
+                                       'rgb(255, 206, 86)',
+                                       'rgb(75, 192, 192)',
+                                       'rgb(153, 102, 255)'
+                               ],
+                               rotation: -90
+                       }, {
+                               data: [1, 5, 10, 50, 100],
+                               backgroundColor: [
+                                       'rgba(255, 99, 132, 0.8)',
+                                       'rgba(54, 162, 235, 0.8)',
+                                       'rgba(255, 206, 86, 0.8)',
+                                       'rgba(75, 192, 192, 0.8)',
+                                       'rgba(153, 102, 255, 0.8)'
+                               ],
+                               borderWidth: 1,
+                               borderColor: [
+                                       'rgb(255, 99, 132)',
+                                       'rgb(54, 162, 235)',
+                                       'rgb(255, 206, 86)',
+                                       'rgb(75, 192, 192)',
+                                       'rgb(153, 102, 255)'
+                               ],
+                               rotation: 0
+                       }]
+               },
+               options: {
+                       circumference: 180,
+                       responsive: false,
+                       legend: false,
+                       title: false
+               }
+       }
+};